Defining the Links

Build a link with an id in it by giving routerLink a list of parts: [routerLink]="['/categories', category.categoryId]" makes /categories/3. The same list works with Router's navigate, and the router joins and escapes the parts for you.

Updated

Cheat sheet: Defining the Links
Category
Angular
Level
Journeyman
Tags
angular, navigate(), routerLink (angular)