<div class="profiles">
<canvas width="50" height="50" v-for="p in profiles" :data-avatar="p.avatar"></canvas>
</div>
let app = new Vue({
el: '#app',
data: {
profiles: []
},
methods: {
renderAvatars () {}
},
mounted: function () {
this.profiles.push({
name: 'test',
avatar: 0
});
}
});