Constructs a new RouteContext instance from the given state and a callback when saving the state.
The hash segment (includes the leading hash symbol ('#'))
The part of the pathname which is matched by the route path pattern. Empty string if the pathname hasn't been matched yet. You should not set this property manually. It is populated by the router.
Exposes methods for retrieving information about the pathname segment. It is an instance of StringMap
The full path (pathname + query string + hash)
The pathname segment (includes the leading forward slash ('/'))
The URL.searchParams object parsed from the url
The query string segment (includes the leading question mark ('?'))
Retrieve the public state object
Saves the state object as the public state of the context.
Getter property for unmatched portions of the path.
Saves the state to the history object. This method is called automatically when the state is changed.
Generated using TypeDoc
Exposes properties and methods for retrieving and modifying the current route context. This is passed as the first argument of the callbacks registered using {@link Router#route}.