I know I can pass a parameter to routerLink
for routes such as
/user/:id
by writing
[routerLink]="['/user', user.id]"
but what about routes such as this one:
/user/:id/details
Is there a way to set this parameter or should I consider a different URL scheme?
Maybe it is really late answer but if you want to navigate another page with param you can,
also you shouldn't forget about routing config like ,
In your particular example you'd do the following
routerLink
:To do so in a controller, you can inject
Router
and use:More info in the Angular docs Link Parameters Array section of Routing & Navigation