This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

NavigationCancel

npm Package @angular/router
Module import { NavigationCancel } from '@angular/router';
Source router/src/events.ts

Represents an event triggered when a navigation is canceled.

Overview

      
      class NavigationCancel extends RouterEvent {
  constructor(id: number, url: string, reason: string)
  reason: string
  toString(): string
  // inherited from router/RouterEvent
  id: number
  url: string
}
    

Constructor

      
      constructor(id: number, url: string, reason: string)
    

Members

      
      reason: string
    

      
      toString(): string