Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account

    Navigate to and Display Components with Route Parameters in Angular


    We often need to pass a parameter like an ID to a route and then access that ID in order to call an API to get some data. In this lesson, we'll look at how to define a route with a parameter, how to use params with the routerLink directive, and how to use the route snapshot to use a param in a component.