show only elemnts with specific id v-for 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 for loop
<ul id="v-for-object" class="demo">
<li v-for="value in object">
{{ value }}
</li>
</ul>