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 eventsCache rules
default options
Always use cache
No exceptions
No navigation delay
No eventsRouter
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 pageEvent
Basic router events
Config