Router API

    • setPath(path: string): void: Sets the path in the router.
    • get currentParams(): { [string: index]: string }: Returns parameters in the current route
    • getRoute(id: string): RouteContext | undefined: Returns the RouteContext for a route id if it is currently matched. If the route id is not matched, then return undefined.
    • id: string: The route id
    • queryParams: { [index: string]: string }: The query params from the matched routing.
    • : The path params from the matched routing.
    • isExact(): boolean: A function indicates if the route is an exact match for the path.
    • isError(): boolean: A function indicates if the route is an error match for the path.