g00glen00b / dimitri.codes

Static generator for dimitri.codes using Gatsby
https://dimitri.codes
Other
20 stars 8 forks source link

https://dimitri.codes/content-sidebar-angular-routing/ #148

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

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.

https://dimitri.codes/content-sidebar-angular-routing/

Riuma72 commented 1 year ago

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

Riuma72 commented 1 year ago

Solved, sorry ;-)