A code for the NavigationCancel event of the Router to indicate the reason a navigation failed.
API
enum NavigationCancellationCode {
Redirect: NavigationCancellationCode.Redirect;
SupersededByNewNavigation: NavigationCancellationCode.SupersededByNewNavigation;
NoDataFromResolver: NavigationCancellationCode.NoDataFromResolver;
GuardRejected: NavigationCancellationCode.GuardRejected;
Aborted: NavigationCancellationCode.Aborted;
}
Redirect
A navigation failed because a guard returned a UrlTree to redirect.
NoDataFromResolver
A navigation failed because one of the resolvers completed without emitting a value.
GuardRejected
A navigation failed because a guard returned false.
Aborted
A navigation was aborted by the Navigation.abort function.