class
final
An event triggered when a navigation starts.
class NavigationStart extends RouterEvent { constructor(id: number, url: string, navigationTrigger: NavigationTrigger = 'imperative', restoredState: { [k: string]: any; navigationId: number; } = null) type: EventType.NavigationStart navigationTrigger?: NavigationTrigger restoredState?: {...} toString(): string // inherited from router/RouterEvent constructor(id: number, url: string) id: number url: string }
|
id | number | |
url | string | |
navigationTrigger | NavigationTrigger | Optional. Default is |
restoredState | object | Optional. Default is |
Property | Description |
---|---|
type: EventType.NavigationStart | Read-Only |
navigationTrigger?: NavigationTrigger | Identifies the call or event that triggered the navigation. An See also: |
restoredState?: {
[k: string]: any;
navigationId: number;
} | null | The navigation state that was previously supplied to the The state object is defined by From the perspective of the router, the router never "goes back". When the user clicks on the back button in the browser, a new navigation ID is created. Use the ID in this previous-state object to differentiate between a newly created state and one returned to by a |
toString() |
---|
|
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/NavigationStart