V For Value

Posted on  by admin

You’re browsing the documentation for v2.x and earlier. For v3.x, click here. We can use the v-for directive to render a list of items based on an array. The v-for directive requires a special syntax in the form of item in items, where items is the source data array and item is an alias for the array element being iterated on:.

{{item.message}} . Inside v-for blocks we have full access to parent scope properties.

v-for on a