The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Use Params from Angular Routes Inside of Components

Use Params from Angular Routes Inside of Components

3:07
Angular’s ActivatedRoute allows you to get the details of the current route into your components. Params on the `ActivatedRoute` are provided as streams, so you can easily `map` the param you want off of the stream and display it in your template.
Watch this lesson now
Avatar
egghead.io

Angular 2’s ActivatedRoute allows you to get the details of the current route into your components. Params on the ActivatedRoute are provided as streams, so you can easily map the param you want off of the stream and display it in your template.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?