Access Parent Route Parameters in Angular

InstructorSam Julien

Share this video with your friends

Send Tweet

When we use child routes (also called nested routes), we often need to access a parent route's parameter, such as an ID used to make an API call. In this lesson, we'll learn how to subscribe to the parent route's paramMap in order to get that ID and use it in our child route component.