RouterService¶
RouterService allows to set up routing for Single Page Application
It is stored in InfinniUI.routerService
.
Description¶
RouterService allows to set up routing at the client side and link this with events, For browsers not supporting History API, RouterService does the same by implementing fragmentary URL.
While the page is loading and after your application opens HomePage view, all routes will be created as defined in InfinniUI.config.routes, router will be automatically fired up in accordance with History API settings from InfinniUI.config.historyAPI. RouterService is a harness for Backbone.Router.
Methods¶
Name | Description |
---|---|
getLinkByName() | Returns link by name path |
startRouter() | Starts routing |
setContext() | Set Context used in scripts |
setParams() | Set Params used in scripts |
addParams() | Add Params used in scripts |