Get router link active class
Get router basename
Get current resolved route
Get router mode
Get routes
Go one step back in the navigation history.
Go one step forward in the navigation history.
Go to a specific history position in the navigation history.
number of steps to forward or backwards (negative number).
Register a navigation guard which will be called whenever a navigation is triggered. All registered navigation guards are resolved in sequence. Navigation guard must call the next() function to continue the execution of navigation change.
Guard callback function.
Unregister guard function.
Register a callback which will be called before execution of navigation guards.
callback function.
Unregister listener function.
Register a callback which will be called when an error is caught during a route navigation.
Callback function.
Unregister callback function.
Register a callback which will be called when all navigation guards are resolved, and the final navigation change is resolved.
callback function.
Unregister listener function.
Push to navigation.
raw path or location object.
On complete callback function.
On abort callback function.
Replace in navigation
raw path or location object.
On complete callback function.
On abort callback function.
Generate route URL from the the raw location.
raw location object.
Trigger the on load history change.
Generated using TypeDoc
Svelte Router core class.