Design Customer Page #3

Open
adekola wants to merge 1 commits from routing-fixed into master
Owner
  1. The base url (localhost:4200/) now redirects to localhost:4200/#/login If the user is not logged in, this is determined via the customer data added to the localstorage anytime the user signs in; however, on signout, the localstorage is cleared. If the user is logged in, they redirected to localhost:4200/#/customer-information

  2. I tried removing the hash by deleting this:
    RouterModule.forRoot(routes, {
    useHash: true,
    }), but it didn't work; the page just displays a blank screen.

  3. Navigating to the /customer-information page without signing in displays a disorderly user interface (but there is no need to worry about it because even if the user tries to navigate to the page when not logged in, they will be redirected to the /login page). I will still resolve this in the future, but otherwise, everything is working fine.

1. The base url (localhost:4200/) now redirects to localhost:4200/#/login If the user is not logged in, this is determined via the customer data added to the localstorage anytime the user signs in; however, on signout, the localstorage is cleared. If the user is logged in, they redirected to localhost:4200/#/customer-information 2. I tried removing the hash by deleting this: RouterModule.forRoot(routes, { useHash: true, }), but it didn't work; the page just displays a blank screen. 3. Navigating to the /customer-information page without signing in displays a disorderly user interface (but there is no need to worry about it because even if the user tries to navigate to the page when not logged in, they will be redirected to the /login page). I will still resolve this in the future, but otherwise, everything is working fine.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin routing-fixed:routing-fixed
git checkout routing-fixed
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adekola/talenttic-crm-app#3