Spec-Zone.ru › Angular

Event

Router events that allow you to track the lifecycle of the router.

API

type Event = | NavigationStart
  | NavigationEnd
  | NavigationCancel
  | NavigationError
  | RoutesRecognized
  | GuardsCheckStart
  | GuardsCheckEnd
  | RouteConfigLoadStart
  | RouteConfigLoadEnd
  | ChildActivationStart
  | ChildActivationEnd
  | ActivationStart
  | ActivationEnd
  | Scroll
  | ResolveStart
  | ResolveEnd
  | NavigationSkipped

Description

Router events that allow you to track the lifecycle of the router.

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.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/Event

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API