Optional
options: { fallback?: BaseRouteConfig }Protected
Readonly
childProtected
currentProtected
currentProtected
currentOptional
fallbackA default fallback route which will always be matched if none of the routes match. Implicitly matches to the path "/*".
Protected
Readonly
hostProtected
onCallback to call when this controller is disconnected.
It's critical to call this immediately in hostDisconnected so that this controller instance doesn't receive a tail match meant for another route.
Protected
parentProtected
previousStatic
Readonly
baseStatic
baseProtected
Static
Readonly
routeProtected
Static
Readonly
routingThe current parsed route parameters.
Protected
getMatches url
against the installed routes and returns the first match.
Navigates this routes controller to pathname
.
This does not navigate parent routes, so it isn't (yet) a general page
navigation API. It does navigate child routes if pathname matches a
pattern with a tail wildcard pattern (/*
).
Returns a URL string of the current route, including parent routes,
optionally replacing the local path with pathname
.
Optional
pathname: stringProtected
onThe result of calling the current route's render() callback.
Static
wait
A reactive controller that performs location-based routing using a configuration of URL patterns and associated render callbacks.