vue list in array 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: vue js v-for array index
<ul>
<li v-for="(val, index) in arr">
<!-- Do something... -->
</li>
</ul>