Class: Router

Router(window)

This class monitors and modifies the browser window history object.

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: