Routing and navigation for browser apps
This library helps you turn URLs into nicely structured data, handle browser address change events and manipulate browser history directly.
Installation
1:
|
|
Routing
Intercept browser address changes and feed them into the dispatch loop.
Usage:
1: 2: 3: 4: 5: |
|
For more information see the routing tutorial.
Navigation
Manipulate the browser's navigation and history.
Usage:
1: 2: 3: 4: |
|
For details see the Navigation
module.
val update : model:'a -> msg:'b -> 'a * 'c
val model : 'a
val msg : 'b