Angular 22 · Routing and forms

Read a route parameter

Read :id from the URL as a signal-friendly input. Needs withComponentInputBinding().

id = input.required<string>();

Official Angular 22 documentation

More routing and forms commands

All routing and forms commands · Angular 22 cheatsheet

Was this page helpful?