Helper method to return excat path of the component
Merges specified state to current route state
Returns Route's current state
Simple Object representation of the route
String representation of the route
Returns redirection path
Builds a route's view. This method is called whenever router is routing into that path. There are some exceptions:
Not the root router, the router which the route belongs to.
view = null - If the route has been built once, the previous view (page) is given. Otherwise it is null. If view is not null, returning the view back makes it singleton.
Factory method to create a new Router instance
If Route has a path or not
Checks if the specified url match to the route path
Returns route path as string
Clones route's path and returns
Return current active url
it tests that Whether router can go back as n
Amount of back as negative value return {boolean}
Adds eventlisteners to listen history changes
Adds route block handler to history. When history is changed in anywhere then the handler intercepts before history is changed.
Emits the router is deactivated.
Pushes new history entry with specified path
Path or matches of the route
Checks if the specified path is valid or not
Rewinds one step the history
This is an experimental feature. If you use this feature you should use for same StackRouter stack.
Returns last location of history
Returns History entries as Array
Unloads the router
Handles route is matched and displayed
Handles that route is removed by router
Generated using TypeDoc
Router Core Implemantation
Router implementation creates a thin layer between view and application layers to handle view changes and to create loosely coupled and resuable routing logic.
1.0.0