On this page
NavigationExtras
interface
Represents the extra options used during navigation.
interface NavigationExtras {
relativeTo?: ActivatedRoute | null
queryParams?: Params | null
fragment?: string
preserveQueryParams?: boolean
queryParamsHandling?: QueryParamsHandling | null
preserveFragment?: boolean
skipLocationChange?: boolean
replaceUrl?: boolean
}
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 |
Preserves the query parameters for the next navigation. deprecated, use
|
queryParamsHandling?: QueryParamsHandling | null |
config strategy to handle the 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.
|
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/router/NavigationExtras