in Vue.JS by

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

► Click here to show 1 Answer

0 votes

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.

Vue JS
Learn More with Madanswer

Related questions