in Vue.JS by
Q:

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

► Click here to show 1 Answer

0 votes
by

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.

Vue JS
Learn More with Madanswer

Related questions

...