V-for
lastmod 2022-03-25created 2022-03-251 edits
Index loop
Supports an optional second argument for the index of the current item.
<ul id="example-2">
<li v-for="(item, index) in items">
{{ parentMessage }} - {{ index }} - {{ item.message }}
</li>
</ul>