NG.V · Angular 22 practice question
A component reads a route parameter from a route snapshot during initialization, then the user navigates to the same component with a different parameter value. Why does the displayed value fail to update?
Check answer and explanation
Correct answer: Route snapshots are static and do not reflect future changes to the route
Explanation
Route snapshots capture router state at a single point in time; they are static and will not reflect subsequent changes when the same route updates.
Common trap
Snapshots do include route parameters, so missing path parameter support is not the reason the UI stays stale. Snapshots remain readable after change detection; they simply retain the initial values rather than updating reactively.
Source: Angular docs: Read route state — Understanding route snapshots
Checked against the cited text on 2026-11-25.