填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

NavigationCancel

An event triggered when a navigation is canceled, directly or indirectly.

查看"说明"...

      
      class NavigationCancel extends RouterEvent {
  constructor(id: number, url: string, reason: string)
  reason: string
  toString(): string

  // 继承自 router/RouterEvent
  constructor(id: number, url: string)
  id: number
  url: string
}
    

说明

表示当导航被取消时触发的事件。

This can happen when a route guard returns false or initiates a redirect by returning a UrlTree.

构造函数

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

属性

属性说明
reason: stringDeclared in constructor.

方法

toString(): string
      
      toString(): string
    
参数

没有参数。

返回值

string