Skip to content

v0.7.0

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 24 Dec 01:27
· 3592 commits to main since this release
  • API change: scope option is now split into data and methods. 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 and v-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>