Router API
setPath(path: string): void
: Sets the path in the router.get currentParams(): { [string: index]: string }
: Returns parameters in the current routegetOutlet(outletIdentifier: string): OutletContext | undefined
: Returns theOutletContext
for an outlet id if it is currently matched. If the outlet id is not matched, then return .
id: string
: The outlet idparams: { [index: string]: string }
: The path params from the matched routing.isExact(): boolean
: A function indicates if the outlet is an exact match for the path.isError(): boolean
: A function indicates if the outlet is an error match for the path.type: 'index' | 'partial' | 'error'
: The type of match for the route, eitherindex
, orerror
.