On this page
Event
type-alias
Router events that allow you to track the lifecycle of the router.
type Event = RouterEvent | NavigationStart | NavigationEnd | NavigationCancel | NavigationError | RoutesRecognized | GuardsCheckStart | GuardsCheckEnd | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd | Scroll | ResolveStart | ResolveEnd;
   Description
The events occur in the following sequence:
- NavigationStart: Navigation starts.
 - RouteConfigLoadStart: Before the router lazy loads a route configuration.
 - RouteConfigLoadEnd: After a route has been lazy loaded.
 - RoutesRecognized: When the router parses the URL and the routes are recognized.
 - GuardsCheckStart: When the router begins the guards phase of routing.
 - ChildActivationStart: When the router begins activating a route's children.
 - ActivationStart: When the router begins activating a route.
 - GuardsCheckEnd: When the router finishes the guards phase of routing successfully.
 - ResolveStart: When the router begins the resolve phase of routing.
 - ResolveEnd: When the router finishes the resolve phase of routing successfully.
 - ChildActivationEnd: When the router finishes activating a route's children.
 - ActivationEnd: When the router finishes activating a route.
 - NavigationEnd: When navigation ends successfully.
 - NavigationCancel: When navigation is canceled.
 - NavigationError: When navigation fails due to an unexpected error.
 - Scroll: When the user scrolls.
 
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
 https://v14.angular.io/api/router/Event