vue.js for loop with components code example
Example 1: vue v-for object
// object: {
// title: 'How to do lists in Vue',
// author: 'Jane Doe',
// publishedAt: '2016-04-10'
// }
<div v-for="(value, name, index) in object">
{{ index }}. {{ name }}: {{ value }}
</div>
Example 2: v-for
<ul>
<li v-for="(item, index) in items">
{{ index }} - {{ item }}
</li>
</ul>