Module -> mount rename: fix a documentation link
This commit is contained in:
parent
7a5980631e
commit
8a8829c2e1
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ Mithril provides utilities to handle three different aspect of routing:
|
|||
|
||||
### Defining routes
|
||||
|
||||
To define a list of routes, you need to specify a host DOM element, a default route and a key-value map of possible routes and respective [modules](mithril.module.md) to be rendered.
|
||||
To define a list of routes, you need to specify a host DOM element, a default route and a key-value map of possible routes and respective [modules](mithril.mount.md) to be rendered. Note: `module` was renamed to `mount`. Documentation will be updated soon.
|
||||
|
||||
The example below defines three routes, to be rendered in `<body>`. `home`, `login` and `dashboard` are modules. We'll see how to define a module in a bit.
|
||||
|
||||
|
|
@ -110,4 +110,4 @@ 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).
|
||||
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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue