Releases: ayamflow/vue-route
v.1.5.0
v1.4.4
v1.4.3
- Prevent the original
data
from a route declaration to be overwritten - Properly update a component's
$data
withkeep-alive
(#18) - Add documentation about IE9/History polyfill
- Add documentation about the
$routeParams
object (#17); - Recreate
oldLocation
andlocation
(instead of updating their props) to avoid "reference traps" in userland.
1.4.2
1.4.1
1.4.0
- Minor rewrite: turn the
beforeUpdate
param into a middleware:
beforeUpdate(location, oldLocation, next)
You have to call next
in order to continue the routing. This allows to prevent the return if needed.
If no beforeUpdate
param is provided, next
is automatically called.
All events emitted by the router are now asynchronous.
Fix #10.
1.3.3
New feature: data
object.
You can now pass an additional object of static parameters for each route. This object will be merged with the vm's $data$
when the according route is matched. This is useful for passing static parameters to a same component existing in different routes, for instance. See the documentation's example.
1.2.1
1.2.0
Structural rewrite.
Add Vue.navigate(path)
method to manually trigger a page change.
Directly extends v-component
for a cleaner and more concise code, meaning that v-transition
, transition-mode
, wait-for
and keep-alive
work.
The routes
hash now takes an additional options
object allowing to pass some config properties:
debug
(boolean, defaults false) enable/disable the directive logsbroadcast
(boolean, defaults false) enable/disable $broadcast for routing events (instead of $emit)base
(string, default '/') the base to use for the routingclick
(boolean, defaults true) enable/disable automatic binding on all clickhashbang
(boolean, defaults false) enable/disable hashbangs