There are two different ways to access route parameters in Angular components. One is through the route snapshot and the other is by subscribing to the route paramMap
. When do you use each? In this lesson, we'll learn that trying to change and access a route parameter in the same component is the key to knowing when to subscribe to the paramMap
instead of just using the snapshot.