From db0b5e26ba061c29e505ddff9654ecb640da534b Mon Sep 17 00:00:00 2001 From: Oscar Date: Tue, 23 Apr 2019 12:59:08 +0200 Subject: [PATCH] fix small typo (#2408) m.route.params() -> m.route.param() --- docs/route.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/route.md b/docs/route.md index e950a242..1473b480 100644 --- a/docs/route.md +++ b/docs/route.md @@ -156,7 +156,7 @@ Argument | Type | Required | Description `key` | `String` | No | A route parameter name (e.g. `id` in route `/users/:id`, or `page` in path `/users/1?page=3`, or a key in `history.state`) **returns** | `String|Object` | | Returns a value for the specified key. If a key is not specified, it returns an object that contains all the interpolation keys - Note that in the `onmatch` function of a RouteResolver, the new route hasn't yet been fully resolved, and `m.route.params()` will return the parameters of the previous route, if any. `onmatch` receives the parameters of the new route as an argument. + Note that in the `onmatch` function of a RouteResolver, the new route hasn't yet been fully resolved, and `m.route.param()` will return the parameters of the previous route, if any. `onmatch` receives the parameters of the new route as an argument. #### RouteResolver