# Reading the Route Parameter

With withComponentInputBinding, the router hands a route's parameters to the page component as inputs, so categoryId is an input like any other, turned into a number with numberAttribute. Load the data in an effect, because Angular reuses the page when only the id changes.

![Cheat sheet: Reading the Route Parameter](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7e228149cfa74309aeb142f33b501d8c.webp)

- Category: Angular
- Level: Journeyman
- Tags: ActivatedRoute, angular, Component Input Binding
- Updated: November 3, 2026

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