On this page
NavigationExtras
interface
Options that modify the navigation strategy.
interface NavigationExtras {
relativeTo?: ActivatedRoute | null
queryParams?: Params | null
fragment?: string
preserveQueryParams?: boolean
queryParamsHandling?: QueryParamsHandling | null
preserveFragment?: boolean
skipLocationChange?: boolean
replaceUrl?: boolean
state?: {...}
}
Properties
Property | Description |
---|---|
relativeTo?: ActivatedRoute | null |
Enables relative navigation from the current ActivatedRoute. Configuration: Navigate to list route from child route:
|
queryParams?: Params | null |
Sets query parameters to the URL.
|
fragment?: string |
Sets the hash fragment for the URL.
|
preserveQueryParams?: boolean |
DEPRECATED: Use
|
queryParamsHandling?: QueryParamsHandling | null |
Configuration strategy for how to handle query parameters for the next navigation.
|
preserveFragment?: boolean |
Preserves the fragment for the next navigation
|
skipLocationChange?: boolean |
Navigates without pushing a new state into history.
|
replaceUrl?: boolean |
Navigates while replacing the current state in history.
|
state?: { [k: string]: any; } |
State passed to any navigation. This value will be accessible through the While |
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/router/NavigationExtras