fix docs about shouldReplaceHistory
This commit is contained in:
parent
d446272cf3
commit
2fa4632186
2 changed files with 6 additions and 2 deletions
|
|
@ -35,7 +35,7 @@
|
|||
<li><a href="mithril.route.html" title="A routing utility">m.route</a>
|
||||
<ul>
|
||||
<li><a href="mithril.route.html#defining-routes" title="Defines what routes exist">m.route(rootElement, defaultRoute, routes)</a></li>
|
||||
<li><a href="mithril.route.html#redirecting" title="Redirects to a route">m.route(path, params)</a></li>
|
||||
<li><a href="mithril.route.html#redirecting" title="Redirects to a route">m.route(path, params, replaceHistory)</a></li>
|
||||
<li><a href="mithril.route.html#reading-current-route" title="Read the current route">m.route()</a></li>
|
||||
<li><a href="mithril.route.html#mode-abstraction" title="Routing mode abstraction">m.route(element)</a></li>
|
||||
<li><a href="mithril.route.html#mode" title="Whether routing uses location hash, querystring or pathname">m.route.mode</a></li>
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ redirects to `http://server/#/dashboard/marysue`
|
|||
[How to read signatures](how-to-read-signatures.md)
|
||||
|
||||
```clike
|
||||
void route(String path [, any params])
|
||||
void route(String path [, any params] [, Boolean shouldReplaceHistory])
|
||||
```
|
||||
|
||||
- **String path**
|
||||
|
|
@ -287,6 +287,10 @@ void route(String path [, any params])
|
|||
|
||||
Parameters to pass as a querystring
|
||||
|
||||
- **Boolean shouldReplaceHistory**
|
||||
|
||||
If set to true, replaces the current history entry, instead of adding a new one. Defaults to false.
|
||||
|
||||
---
|
||||
|
||||
<a name="reading-current-route"></a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue