router link to params 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]"........