Vue.js · Directive
v-for
The v-for directive repeats an element or template block for values from an array, object, number, string, or iterable. It supports aliases for the current value and optional index or object key.
Last updated
Syntax
v-for="item in items"
v-for="(item, index) in items"
v-for="(value, key, index) in object"In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
v-ifkeycomputedtemplate