Constructor
new Router(appInstance)
Constructor
Parameters:
Name | Type | Description |
---|---|---|
appInstance | App | Instance of app |
- Source
Methods
addRoute(route, stateClass)
Adds route and action
Parameters:
Name | Type | Description |
---|---|---|
route | string | Route pattern |
stateClass | State | State class which belongs to route pattern |
- Source
disable()
Disables router logic
- Source
enable()
Enables router logic
- Source
setUrl(url)
Update browser URL without triggering the processing
Parameters:
Name | Type | Description |
---|---|---|
url | String | Sets the url part |
- Source