UncategorizedVue

Vue V-for with number instead of Array

By June 6, 2020 No Comments

Yep that does it. item.score is a number not an Array.

1
2
3
<div v-for="index in parseInt(item.score)"
                                                   :key="index">
</div>