FrontendDeveloper.in

Vue.js question detail

How do you use v-for directive with a range?

You can also use integer type(say 'n') for v-for directive which repeats the element many times.

<span v-for="n in 20">{{ n }} </span>

It displays the number 1 to 20.

Back to all Vue.js questions
Get LinkedIn Premium at Rs 399