From b59ab50ba3c6936ae382fc02af89c0d254614857 Mon Sep 17 00:00:00 2001 From: Jim Kalafut Date: Fri, 18 Aug 2017 23:02:38 -0700 Subject: [PATCH] docs: Fix typo (#1940) --- docs/route.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/route.md b/docs/route.md index a8f7a2fe..8706119e 100644 --- a/docs/route.md +++ b/docs/route.md @@ -107,7 +107,7 @@ This function can be used as the `oncreate` (and `onupdate`) hook in a `m("a")` m("a[href=/]", {oncreate: m.route.link})`. ``` -Using `m.route.link` as a `oncreate` hook causes the link to behave as a router link (i.e. it navigates to the route specified in `href`, instead of nagivating away from the current page to the URL specified in `href`. +Using `m.route.link` as a `oncreate` hook causes the link to behave as a router link (i.e. it navigates to the route specified in `href`, instead of navigating away from the current page to the URL specified in `href`. If the `href` attribute is not static, the `onupdate` hook must also be set: