document new argument in m.route(path)
This commit is contained in:
parent
2b8c82e365
commit
bdcfbde8e0
5 changed files with 19 additions and 12 deletions
|
|
@ -264,13 +264,17 @@ redirects to `http://server/#/dashboard/marysue`
|
|||
[How to read signatures](how-to-read-signatures.md)
|
||||
|
||||
```clike
|
||||
void route(String path)
|
||||
void route(String path [, any params])
|
||||
```
|
||||
|
||||
- **String path**
|
||||
|
||||
The route to redirect to. Note that to redirect to a different page outside of the scope of Mithril's routing, you should use `window.location`
|
||||
|
||||
- **any params**
|
||||
|
||||
Parameters to pass as a querystring
|
||||
|
||||
---
|
||||
|
||||
<a name="reading-current-route"></a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue