Page 1 of 1

Table - vuejs v-for

Posted: Thu Jun 06, 2019 7:48 am
by zac.mad
my code :
...
<tbody>
<tr v-for="user in users" :key="user.id">
<td>{{user.id}}</td>
<td>{{user.name}}</td>
<td>{{user.email}}</td>
</tr>
</tbody>
....
am i doin it the wrong way or the v-for directive doesn't work with tables that using data-role="table"...any way around it?!

Note : it works fine when i remove data-role="table"

Re: Table - vuejs v-for

Posted: Sat Jun 08, 2019 12:12 am
by drodriguez
Do you init Metro after mounted vuejs?

https://metroui.org.ua/vuejs.html

var app = new Vue({
el: '#app',
data: {
},
mounted: function () {
Metro.init();
}
})

Re: Table - vuejs v-for

Posted: Sun Jun 09, 2019 6:16 am
by zac.mad
Yup i did..same issue