Pass data to routerLink
Pass data to routerLink
If you want to pass data to a url using a property like so: /user/:id/details
, then:
[routerLink]="['user', user.id, 'details']"
Solution found here: How to pass a parameter to routerLink that is somewhere inside the URL
Leave a comment