On Sunday, February 11, 2018 at 5:17:21 PM UTC+5:30, Sander Elias wrote:
> Hi Rakhee,
> You need to add a top-level router. It only has 2 routes. Login, and dash.
> I assume, you now have login as a route inside your dash. This makes it
> rather difficult to arrange what you want.
> So. move that route to a level above the dash, and only show the dash when
> the user is logged in. Saves you a bundle of checking everywhere else too,
> because you need to be logged in otherwise you won't be able to visit
> anything inside dash,
> So, create a new top-level router, and move all you have now into a 'dash'
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.