Hi folks,
I am using angular2-jwt (https://github.com/auth0-blog/angular2-authentication-sample). Here is sample code: *In App.component.ts* Import......... .................. @Component({ selector: 'my-app', templateUrl: 'app/app.component.html', directives: [RouterLink, LoggedInRouterOutlet] }) @RouteConfig([ //{ path: '/', redirectTo: ['/Home'] }, { path: '/home', name: 'Home', component: Home, useAsDefault: true }, { path: '/login', component: Login, as: 'Login' }, { path: '/about', component: About, as: 'About' }, //{ path: '/signup', component: Signup, as: 'Signup' } ]) export class AppComponent { constructor(public router: Router) { } } *app.component.html* <nav> <a [routerLink]="['Home']">Home</a> <a [routerLink]="['About']">About</a> </nav> <router-outlet></router-outlet> I am having a little problem with navigation top bar. <https://lh3.googleusercontent.com/-Iplu6OCvlGY/V1aSwQBFKLI/AAAAAAAAIrs/Da8lHKoOLeoQhdqhFBaxK0iPNTnuvZ0KwCLcB/s1600/nav.JPG> How to hide the navigation bar if token id storage is empty or null? I am waiting for your response. Thanks in advance! -- You received this message because you are subscribed to the Google Groups "AngularJS" 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.
