(add-route key & {:as args})
Adds a route to the routes dictionary.
Takes a unique key
, and any arguments the component
for that route requires.
Adds a route to the routes dictionary. Takes a unique `key`, and any arguments the component for that route requires.
(go! url)
Routes to the given url
. Pushes to the history state
, and
uses URLs as a fall back.
Routes to the given `url`. Pushes to the `history state`, and uses URLs as a fall back.
(matches-current-route? url)
Tests whether the given url
matches a the current route
.
Tests whether the given `url` matches a the current `route`.
(reload! url)
Reloads at the given url
. Replaces the history state
, and
uses URLs as a fall back.
Reloads at the given `url`. Replaces the `history state`, and uses URLs as a fall back.
(set-mount-point! id)
Sets the page mount point
for routes.
Sets the page `mount point` for routes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close