Save location (#534)

* add location

* remove zopfli from build

* state.location -> state.href

* add state.href docs
This commit is contained in:
Yoshua Wuyts
2017-07-26 19:31:15 +02:00
committed by GitHub
parent 4684f5ef1a
commit 9c8c5b3c85
3 changed files with 11 additions and 7 deletions
+3
View File
@@ -236,6 +236,9 @@ The current params taken from the route. E.g. `/foo/:bar` becomes available as
An object containing the current queryString. `/foo?bin=baz` becomes `{ bin:
'baz' }`.
### `state.href`
An object containing the current href. `/foo?bin=baz` becomes `foo`.
### `state.route`
The current name of the route used in the router (e.g. `/foo/:bar`).