Router API

    • setPath(path: string): void: Sets the path in the router.
    • get currentParams(): { [string: index]: string }: Returns parameters in the current route
    • getOutlet(outletIdentifier: string): OutletContext | undefined: Returns the OutletContext for an outlet id if it is currently matched. If the outlet id is not matched, then return .
    • id: string: The outlet id
    • params: { [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, either index, or error.