Home Reference Source
public class | source

Router

A static class which is responsible for handling state and url change Remember to remove <base/> in most common scenarios

Static Method Summary

Static Public Methods
public static

A static method used to attach a handler to the state change.

public static

A static method used to push a new state

Static Public Methods

public static onStateChange(listener: Function): Function source

A static method used to attach a handler to the state change. It returns a function that can be called to remove the handler when it is no longer used

Params:

NameTypeAttributeDescription
listener Function

The state change handler

Return:

Function

public static redirect(url: String) source

A static method used to push a new state

Params:

NameTypeAttributeDescription
url String

The new url