v0.7.0
-
API change:
scopeoption is now split intodataandmethods.protooption has been removed. -
Object observer rewrite: the ViewModel will now directly proxy the value get/set to the
dataobject 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-repeatandv-componentmuch 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>