Categories

Oct 21, 2019 in Vue.JS

Q:

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

1 Answer

Oct 21, 2019

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

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

It displays the number 1 to 20.

Click here to read more about Vue JS
Click here to read more about Insurance

Related questions

Madanswer
Oct 21, 2019 in Vue.JS
Oct 21, 2019 in Vue.JS
Oct 21, 2019 in Vue.JS
...