Categories

Feb 4 in Vue.JS
Q: How do you use v-for directive with a range in VueJS?

1 Answer

Feb 4
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
Feb 4 in Vue.JS
Jan 9 in Vue.JS
Jan 9 in Vue.JS
...