© Adam Freeman 2018
Adam FreemanPro Vue.js 2https://doi.org/10.1007/978-1-4842-3805-9_13

13. Using the Repeater Directive

Adam Freeman1 
(1)
London, UK
 
In this chapter, I continue to describe the built-in Vue.js directives and focus on the v-for directive, which is commonly used to populate lists and generate rows for tables and grid layouts. Table 13-1 puts the v-for directive in context.
Table 13-1

Putting the v-for Directive in Context

Question

Answer

What is it?

The v-for directive is used to duplicate a set of HTML elements for each item in an array or for each property defined by an object.

Why is it useful?

The v-for directive defines a variable that provides access to the object being processed, which can be used in data bindings to customize the ...

Get Pro Vue.js 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.