Merge pull request #40 from timwis/hash

router: add hash routing
This commit is contained in:
Yoshua Wuyts
2016-06-09 12:13:18 +02:00
3 changed files with 26 additions and 6 deletions
+4
View File
@@ -655,6 +655,10 @@ following values:
- __opts.href:__ default: `true`. Handle all relative `<a
href="<location>"></a>` clicks and update internal `state.location`
accordingly.
- __opts.hash:__ default: `false`. Enable a `subscription` to the hash change
event, updating the internal `state.location` state whenever the URL hash
changes (eg `localhost/#posts/123`). Enabling this option automatically
disables `opts.history` and `opts.href`.
## Errors
### Could not find DOM node (#id) to update