link route with parameters code example
Example: router link with params
<!-- Import in module... -->
imports: [
RouterModule,
....
],
<!-- HTML -->
<button [routerLink]="['profile', user.id]"........
<!-- Import in module... -->
imports: [
RouterModule,
....
],
<!-- HTML -->
<button [routerLink]="['profile', user.id]"........