0.11.0-rc3
Pre-release
Pre-release
New
- New partial compilation implementation. This enables a few new features/changes:
- dynamic partial:
<div v-partial="{{partialId}}"></div>now reacts to change ofpartialId. - new
v-ifimplementation: no longer using an anonymous wrapper instance, should work more intuitively. - new instance method:
vm.$compile()can dynamically compile a piece of DOM. more details
- dynamic partial:
- New global config option:
Vue.config.async. Defaults totrue; if set tofalsewill force Vue to use synchronous view/watcher updates. - New instantiation option:
watch
Changed
-
Custom directive API change:
isFnoption for directives is removed.- instead there's a new option:
acceptStatement.
-
Component directive scope change:
directives on the root element of a component from the parent's template will be compiled in the parent's scope. For example:
<div v-component="comp" v-show="ok"></div>
Here the
v-showwill be compiled in parent scope, thus it is bound to theokproperty on the parent, not the component itself.Note that if the directive is part of the component's own template, however, it will be compiled in the component's scope instead.