type-alias
Information about a navigation operation. Retrieve the most recent navigation object with the Router.getCurrentNavigation() method .
type Navigation = { id: number; initialUrl: string | UrlTree; extractedUrl: UrlTree; finalUrl?: UrlTree; trigger: 'imperative' | 'popstate' | 'hashchange'; extras: NavigationExtras; previousNavigation: Navigation | null; };
Router#navigateByUrl()
call before navigation. This is the value before the router has parsed or applied redirects to it.UrlSerializer.extract()
.undefined
. It is guaranteed to be set after the RoutesRecognized
event fires.router.navigateByUrl
or router.navigate
. -- 'popstate'--Triggered by a popstate event. -- 'hashchange'--Triggered by a hashchange event.NavigationExtras
options object that controlled the strategy used for this navigation.Navigation
object. Only one previous navigation is available, therefore this previous Navigation
object has a null
value for its own previousNavigation
.
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/router/Navigation