Constructor
new Router(window)
Parameters:
Name | Type | Description |
---|---|---|
window |
window | The browsers window object |
- Source:
Methods
back()
Call the history.back function
- Source:
goto(url)
Goto the reuqested url and inform listeners
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The url |
- Source:
reload()
Inform listeners of the current url.
- Source: