PageHandler 

Kind: global class


pageHandler.init() 

Initializes the page handler.

Kind: instance method of PageHandler


pageHandler.handlePreManagedState(managedPage, nextManagedPage, [action]) 

Called before a PageManager starts to transition from previous page to a new one.

Kind: instance method of PageHandler

Param Type Description
managedPage ManagedPage The currently managed page - soon-to-be previously managed page.
nextManagedPage ManagedPage The data of the page that’s about to be managed.
[action] Object An action object describing what triggered the routing.

pageHandler.handlePostManagedState(managedPage, previousManagedPage, [action]) 

Called after a PageManager finishes transition from previous page to a new one.

Kind: instance method of PageHandler

Param Type Description
managedPage ManagedPage The currently managed page.
previousManagedPage ManagedPage The data of the page that was previously managed.
[action] Object An action object describing what triggered the routing.

pageHandler.destroy() 

Finalization callback, called when the page manager is being discarded. This usually happens when the page is hot-reloaded at the client side.

Kind: instance method of PageHandler