Hi Rakesh, You can add a top level route, that distinguishes on login state. Once you log in, you pull in a component that serves what you now use at the top level. Another solution is to use ngIf to check the login-state. something like this will do:
<span *ngIf="userAuthenticated"><router-outlet></router-outlet></span> <span *ngIf="!userAuthenticated"><sign-in-on></sign-in-on></span> Does that help you a bit? Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular" 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.
