• Overview
@angular/router

NavigationCancel

Class

An event triggered when a navigation is canceled, directly or indirectly. This can happen for several reasons including when a route guard returns false or initiates a redirect by returning a UrlTree.

  
    class NavigationCancel extends RouterEvent {}
  
  

reason

string

A description of why the navigation was cancelled. For debug purposes only. Use code instead for a stable cancellation reason that can be used in production.

toString

string
@returnsstring

id

number

A unique ID that the router assigns to every router navigation.

url

string

The URL that is the destination for this navigation.

Jump to details