4 ms·
it's just plain for(x in list){ .. } v-for="item in list" if you need idx: v-for="(item, i) in list" pretty standard stuffs
by jaequery 9y ago
it's just plain for(x in list){ .. }
v-for="item in list"
if you need idx:
v-for="(item, i) in list"
pretty standard stuffs
- PrunJuice 9y agoI thought the whole point was that you didn't have to write loops in Vue.js and yet here is a loop in Vue.js.
- moo360 9y agoCool, but in JSX it's just javascript as you would write it anywhere else in your app, except encapsulated in braces. How is that not simpler for people who should be Javascript developers?