AbstractMHistoryRouter

AbstractMHistoryRouter ⇐ Trait

Kind: global abstract class
Extends: Trait
Properties

NameTypeDescription
_routesHistoryArray

A list of routes as an history of navigation.

AbstractMHistoryRouter()

Utility class to handle route items inside the router history stack.

getRouteFromHistory([options]) ⇒ Object

Retrieves one or more route from the history of navigation.

Kind: instance method of AbstractMHistoryRouter
Returns: Object - A route object holding a route name and some route data.

ParamTypeDescription
[options]Object

Optional parameters

[options.index]number

An index between 0 and the history stack length.

[options.find]function

A function called as an interactive method to find routes that fulfill a given condition.

_addRouteToHistory(routeName, data)

Push a new route into the history stack of navigation.

Kind: instance method of AbstractMHistoryRouter
Access: protected

ParamTypeDescription
routeNameString

The route name associated to the wanted page to jump to.

dataObject

The route parameters (holding a POJO structure)

_getPreviousRoute() ⇒ Object

Retrieves the latest route stored in the history. Can be overridden if you want a specific behaviour

Kind: instance method of AbstractMHistoryRouter
Returns: Object - The latest route in the history stack.
Access: protected