Router State

Go back to Tutorial

After the end of each successful navigation lifecycle, the router builds a tree of ActivatedRoute objects that make up the current state of the router. You can access the current RouterState from anywhere in the application using the Router service and the routerState property.

Each ActivatedRoute in the RouterState provides methods to traverse up and down the route tree to get information from parent, child and sibling routes.

Share this post
[social_warfare]
Router Links
Activated Route

Get industry recognized certification – Contact us

keyboard_arrow_up