I have code like this (JSFiddle)
<li v-for="(itemObjKey, catalog) in catalogs">this index : {{itemObjKey}}</li>
Output:
this index: 0
this index: 1
My question is:
- How can I get value index first begin: 1 for example
I want output like this:
this index: 1
this index: 2 - How can I get count from index, i.e. output like this:
this index: 1
this index: 2
this count: 2 field
$index, seems cleaner.<li v-for="item in catalogs">this index : {{$index}}</li>$indexsyntax in favour of explicitly declaring the index.