send params in routeLink 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]"........