Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

NavigationCancellationCode

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.