Answer the question
In order to leave comments, you need to log in
How to output a for loop in Vue?
We need not the cycle described in the docks v-for="item in items"
, but an iterative (?) cycle:
for (let i = 0; i < count; i++) {
//
}
Answer the question
In order to leave comments, you need to log in
v-for
knows how to do everything, incl. in the range :
<div>
<span v-for="n in 10">{{ n }} </span>
</div>
<!-- получится 1 2 3 4 5 6 7 8 9 10 -->
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question