v0.7.0
-
API change:
scope
option is now split intodata
andmethods
.proto
option has been removed. -
Object observer rewrite: the ViewModel will now directly proxy the value get/set to the
data
object passed in at instantiation. This allows the user to manipulate data directly or on the ViewModel and they will always be in sync. -
The new observe mechanism makes the
v-repeat
andv-component
much simpler, as a nested object is no longer needed when creating child ViewModels:Before
<div v-component="list:listOptions"> <div v-repeat="item:model.items"> {{item.title}} </div> </div>
After
<div v-component="list:listOptions"> <div v-repeat="items"> {{title}} </div> </div>