From 34a96d9428f237897646526f1681c6b11e58f847 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 23 Jul 2015 23:05:09 -0400 Subject: [PATCH] added links to relevant sections --- docs/routing.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/routing.md b/docs/routing.md index a6970a25..cf355319 100644 --- a/docs/routing.md +++ b/docs/routing.md @@ -105,3 +105,9 @@ m("a[href='/dashboard/alicesmith']", {config: m.route}); This makes the href behave correctly regardless of which `m.route.mode` is selected. It's a good practice to always use the idiom above, instead of hardcoding `?` or `#` in the href attribute. See [`m()`](mithril.md) for more information on virtual elements. + +--- + +### Redrawing semantics of routing + +By default, changing routes causes templates to be re-rendered from scratch. This behavior can be changed either via the [retain flag in a config's context object](mithril.md#persisting-dom-elements-across-route-changes), or the [`m.redraw.strategy("diff")` hint](mithril.redraw.md#changing-redraw-strategy). \ No newline at end of file