Router object containing callback registration methods and utilities for navigating and managing routes.
Get the URL parameters extracted from the current route and path.
URL parameters for the current route.
Get the current URL path.
The current path from location.pathname
Add a callback that will be called after new HTML content is injected onto the page.
Function that will be called after injection.
Returns the router.
Add a callback that will be called after navigating to new URL path.
Function that will be called after navigation.
Navigate to the previous history entry.
forward Navigate to the next history entry.
Check if the route matches the current URL path, or specified URL path.
Route string.
Path string to check if matches the route. Defaults to the current URL path.
Whether the path matches the route string.
Initialize and mount the router to the DOM.
Navigate to a new URL path on the site and push the state to the history stack.
URL path to navigate to.
Navigate to a new URL path on the site and replace the state to the history stack.
Router object containing callback registration methods and utilities for navigating and managing routes.