W3cubDocs

/Angular

NavigationCancellationCode

enum

A code for the NavigationCancel event of the Router to indicate the reason a navigation failed.

enum NavigationCancellationCode {
  Redirect
  SupersededByNewNavigation
  NoDataFromResolver
  GuardRejected
}

Members

Member Description
Redirect

A navigation failed because a guard returned a UrlTree to redirect.

SupersededByNewNavigation

A navigation failed because a more recent navigation started.

NoDataFromResolver

A navigation failed because one of the resolvers completed without emitting a value.

GuardRejected

A navigation failed because a guard returned false.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/NavigationCancellationCode