zhouzhuojie / meteor-vue

Vue for Meteor
130 stars 8 forks source link

Template on v-repeat #8

Closed nerijunior closed 9 years ago

nerijunior commented 9 years ago

How can I set a template to use on a v-repeat like this:

<ul>
  <template v-repeat="list">
    <li>{{msg}}</li>
    <li class="divider"></li>
  </template>
</ul>
zhouzhuojie commented 9 years ago

I'm sorry you can't. template is reserved by Meteor.

nerijunior commented 9 years ago

Exists some alternative?

zhouzhuojie commented 9 years ago

If you want to use componant, there is a great guide from official doc of Vue.js. Or you can simply use div, like <div v-repeat='list'>, and bind the data with meteor-vue [[msg]]

nerijunior commented 9 years ago

@zhouzhuojie Thanks!