What it does
Represents the extra options used during navigation.
Interface Overview
interface NavigationExtras {
relativeTo
: ActivatedRoute
queryParams
: Params
fragment
: string
preserveQueryParams
: boolean
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.
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 @angular/router/index, defined in @angular/router/src/router.ts