Ang2
Diving Into Angular's Router

Route Params

PRO

Very often we will need to use the information contained in a route param somewhere in our class. In our example app, we need to do so because the user's ID is contained in a param and that value is useful for retrieving data for that particular user before the component loads up. Let's see how we can use the route params observable to get the information we need.

 

I finished! On to the next chapter