RESOLVED
Hi,
I have an loggin page and after login i tried without succes to navigate to page2 like this
this.router.navigate(['agenda'])
this.router.navigateByUrl('/agenda');
this.router.navigateByUrl('agenda');
i have removed from routes AuthGuard] without success too
My routes
export const routesKendo = [
{path: '**', redirectTo: '/login'},
{path: 'login', component: LoginComponent},
{ path: 'agenda', component: AgendaComponent, canActivate: [AuthGuard], text: 'Agenda' },
{ path: 'contact', component: ContactComponent, canActivate: [AuthGuard], text: 'Contact' },
{ path: 'facture', component: FactureComponent, canActivate: [AuthGuard], text: 'Facture' }
];
my module
@NgModule({
declarations: [],
imports: [
CommonModule,
RouterModule.forRoot(routesKendo,
{enableTracing: true , // <-- debugging purposes only
relativeLinkResolution: 'legacy'} //dans l"exemple de Kendo
)
],
exports: [RouterModule]
})
Where is my mistake ?
Regards