NavigationError
An event triggered when a navigation fails due to an unexpected error.
class NavigationError extends RouterEvent {
constructor(id: number, url: string, error: any, target?: RouterStateSnapshot)
type: EventType.NavigationError
error: any
target?: RouterStateSnapshot
toString(): string
// inherited from router/RouterEvent
constructor(id: number, url: string)
id: number
url: string
}
See also
Constructor
Parameters
|
Properties
Property | Description |
---|---|
type: EventType.NavigationError
|
Read-Only |
error: any
|
Declared in Constructor |
target?: RouterStateSnapshot
|
Read-Only
The target of the navigation when the error occurred. Note that this can be |
Methods
toString() |
---|
ParametersThere are no parameters. Returns
|