From 1485a24e49aaaf5e3cac46db3ea8d317cf4f2365 Mon Sep 17 00:00:00 2001 From: pelonpelon Date: Wed, 4 Mar 2015 21:54:16 -0600 Subject: [PATCH] Update mithril.route.md --- docs/mithril.route.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mithril.route.md b/docs/mithril.route.md index d3fede4f..85fd34e1 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -78,7 +78,7 @@ This redirects to the URL `http://server/#/dashboard/johndoe` and yields: Above, `dashboard` is a module. It contains a `controller` and a `view` properties. When the URL matches a route, the respective module's controller is instantiated and passed as a parameter to the view. -In this case, since there's only route, the app redirects to the default route `"/dashboard/johndoe"`. +In this case, since there's only one route, the app redirects to the default route `"/dashboard/johndoe"`. The string `johndoe` is bound to the `:userID` parameter, which can be retrieved programmatically in the controller via `m.route.param("userID")`.