Router<'model, 'msg> Type

A simple hand-written router.

Record fields

Record Field Description

getRoute

Full Usage: getRoute

Field type: 'model -> string

Get the uri corresponding to the model.

Field type: 'model -> string

setRoute

Full Usage: setRoute

Field type: string -> 'msg option

Get the message to send when the page navigates to the uri.

Field type: string -> 'msg option