Login
Remember
Register
Ask a Question
How do you use v-for directive with a range in VueJS?
0
votes
asked
Feb 4, 2020
in
VueJS
by
rajeshsharma
How do you use v-for directive with a range in VueJS?
#vuejs-directivve
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 4, 2020
by
SakshiSharma
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.
...