Optionaloptions: { fallback?: BaseRouteConfig }Protected ReadonlychildProtectedcurrentProtectedcurrentProtectedcurrentOptionalfallbackA default fallback route which will always be matched if none of the routes match. Implicitly matches to the path "/*".
Protected ReadonlyhostProtectedonCallback 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.
ProtectedparentProtectedpreviousStatic ReadonlybaseStaticbaseProtected Static ReadonlynavProtected Static ReadonlyonProtected StaticpreviousProtected Static ReadonlyrouteProtected Static ReadonlyroutingProtected Static ReadonlysearchThe current parsed route parameters.
ProtectedgetMatches 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.
Optionalpathname: stringProtectedonProtectedonProtectedonThe result of calling the current route's render() callback.
StaticaddStaticaddStaticremoveStaticremoveStaticwait
Custom implementation of lib-labs/router Router class.
Adds the ability to add navigation and search listeners.
A root-level router that installs global event listeners to intercept navigation.
This class extends
Routesso that it can also have a route configuration.There should only be one Router instance on a page, since the Router installs global event listeners on
windowanddocument.Nested routes should be configured with the
Routesclass.