Router API
setPath(path: string): void
: Sets the path in the router.get currentParams(): { [string: index]: string }
: Returns parameters in the current routegetRoute(id: string): RouteContext | undefined
: Returns theRouteContext
for a route id if it is currently matched. If the route id is not matched, then returnundefined
.
id: string
: The route idqueryParams: { [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.