zhouzhuojie / meteor-vue

Vue for Meteor
130 stars 8 forks source link

An Vue upgrade issue. #19

Closed JohnSmith0602 closed 9 years ago

JohnSmith0602 commented 9 years ago

Hi, I upgrade to the latest vue:vue, seems like it uses Vue.js 1.0.4. Here comes the problems:

First, a small one, v-repeat is replaced by v-for, which should be noted in the example in README.MD, the first entry for new users to get to know vue:vue.

Then, I checked my code several times, pretty sure that after replacing <div v-repeat="member in members"></div>with <div v-for="member in members"></div>, I got all members with no data in them at all, meaning member count is still right, yet nothing in them.

Wonder if it's a known issue. Many thanks.

var vm = new Vue({
  sync: {
    members: function() { return Members.find(); }
  }
})
JohnSmith0602 commented 9 years ago

Sorry, it's my stupid syntax error.

JohnSmith0602 commented 9 years ago

Hi, I check the Vue.js Doc, seems like I have to use [[member.name]] inside the for loop. There are too many mebmer prefix to add, is there something like loop context to make it easier? Thanks.