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.

Updated

Cheat sheet: Reading the Route Parameter
Category
Angular
Level
Journeyman
Tags
ActivatedRoute, angular, Component Input Binding