# 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.

![Cheat sheet: Defining the Links](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/8d0eeb55dc8844428d44b821eeb8c179.webp)

- Category: Angular
- Level: Journeyman
- Tags: angular, navigate(), routerLink (angular)
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/route-parameters-in-angular-defining-the-links-cheat-sheet
