Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.69 KB

Doc.md

File metadata and controls

63 lines (44 loc) · 1.69 KB

HashRouterService

Hash Router service

Kind: global class

hashRouterService.routes : Object

All registered routes

Kind: instance property of HashRouterService

hashRouterService.navigate

Emits an event

Kind: instance property of HashRouterService

Param Description
url the hash url you want to navigate like

Example

HashRouter.navigate(`/products/12/22/bobby/123/random`);

hashRouterService.goBack

Go back in time

Kind: instance property of HashRouterService

hashRouterService.route

Register route

Kind: instance property of HashRouterService

Param Description
url with majic variables like :NameOfVariable for a string OR #nameOfNumberVariable for number
handler to be called back with route data

hashRouterService.routeOff

Unregister a route

Kind: instance property of HashRouterService

Param Description
url you passed when creating the route