diff --git a/docs/mithril.route.md b/docs/mithril.route.md index 5888be53..7c5c39ba 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -51,13 +51,13 @@ var dashboard = { } } +//setup routes to start w/ the `#` symbol +m.route.mode = "hash"; + //define a route m.route(document.body, "/dashboard/johndoe", { "/dashboard/:userID": dashboard }); - -//setup routes to start w/ the `#` symbol -m.route.mode = "hash"; ``` This redirects to the URL `http://server/#/dashboard/johndoe` and yields: