dimitri.codes
dimitri.codes copied to clipboard
https://dimitri.codes/content-sidebar-angular-routing/
Loading content within a sidebar using Angular routing | Dimitri's tutorials
In this tutorial, we'll use the powers of Angular Material and routing combined to load our route content within a sidebar or sidenav component.
Hi, I have a small problem: I did the routing and it works (if I insert the link by hand in the URL there are no problems) but I can't call the routerlink, it won't load it: where am I going wrong? This is the code: const routes: Routes = [ {path: '', component: DashboardComponent, children: [ {path: '', redirectTo: 'camere', outlet: 'side', pathMatch: 'full'}, {path: 'camere', component: CamereComponent, outlet: 'side'},
] }, {path: 'statistiche', component: StatisticheComponent}, {path: 'impostazioni', component: ImpostazioniComponent}, {path: 'dashboard', component: DashboardComponent, children: [ {path: '', redirectTo: 'camere', outlet: 'side', pathMatch: 'full'}, {path: 'camere', component: CamereComponent, outlet: 'side'}, {path: 'aree-interdette', component: AreeInterdetteComponent, outlet: 'side'}, ]} ];
In the button I put this: routerlink: "aree-interdeete".
Any idea? Thanks
Solved, sorry ;-)