What it does
Represents the extra options used during navigation.
Interface Overview
interface NavigationExtras {
relativeTo
: ActivatedRoute
queryParams
: Params
fragment
: string
preserveQueryParams
: boolean
queryParamsHandling
: QueryParamsHandling
preserveFragment
: boolean
skipLocationChange
: boolean
replaceUrl
: boolean
}
Interface Description
Interface Details
relativeTo : ActivatedRoute
Enables relative navigation from the current ActivatedRoute.
Configuration:
Navigate to list route from child route:
queryParams : Params
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
instead
queryParamsHandling : QueryParamsHandling
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.
exported from router/index, defined in router/src/router.ts