Hi Katheeja,

Usually, I have a special route for login that doesn't show the UI at all. 
Think of it as a routing layer above what you have now, that has a special 
outlet for anything that's not "inside" your app.

Another solution is something like this:
<nav *ngIf="user.isAuthenticated()">
<a [routerLink]="['/routePath']" routerLinkActive="router-link-active" >
Orders</a>
<a [routerLink]="['/routePath']" routerLinkActive="router-link-active" >
Invoices</a>
<a *ngIf="user.hasPermission('setup')" [routerLink]="['/routePath']" 
routerLinkActive="router-link-active" >Setup</a>
</nav>

Hope this helps a bit,
Regards
Sander

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to