RouterRouter options
cache cache strategy
cacheExceptions paths to ignore caching for, useful for pages like login where you don't want the inputs to remain filled.
navigation delay add delay to navigation so you can animate page transitions
onEvent receive notifications for Router events
Cache rules
default options
Always use cache
No exceptions
No navigation delay
No events
Router
Msg
Layout
title Set a title for each page.
attrs Attributes that will be set on the container.
main Html content to be set inside the container.
update
subscriptions
onUrlChange
onUrlRequest
map update
map view
redirect
reload
This never results in a page load! It will just re-init the current page
replaceUrl
Same as redirect but uses `Browser.Navigation` replaceUrlexternal
Same as redirect exept is an external link
Event
Basic router events
Config
bind Your router Msg eg
RouterMsg (Router.Msg Page.Msg)parser Your
RouteparsernotFound Your not found
Routeinit Your
Pageinitupdate Your
Pageupdateview Your
Pageviewsubscriptions Your
Pagesubscriptionsoptions
Routeroptions