VUE JS V-FOR-Array-Index
<ul>
<li v-for="(val, index) in arr">
<!-- Do something... -->
</li>
</ul>
garzj
<ul>
<li v-for="(val, index) in arr">
<!-- Do something... -->
</li>
</ul>
<option v-for="(location, index) in locations" v-bind:value="location.id" v-bind:selected="index === 0">
{{ location.from }} - {{ location.to }}
</option>
<ul id="v-for-object" class="demo">
<li v-for="value in object">
{{ value }}
</li>
</ul>
<ul>
<li v-for="(item, index) in items">
{{ index }} - {{ item }}
</li>
</ul>