4 ms·
That is awesome that you have <For>! That's one of my biggest pet peeves with Vue.js, where it has to be an attribute on an element, and it's not intuitive whet
by sbjs 8y ago
That is awesome that you have <For>! That's one of my biggest pet peeves with Vue.js, where it has to be an attribute on an element, and it's not intuitive whether it goes on the parent or the child. (I think Vue makes it go on the parent but I think it makes more sense for it to go on the child.)
- ppseafield 8y agoIIRC for Vue.js it goes on the child, i.e. <ul> <li v-for="item in items">[...]</li> </ul> It is something you do have to remember. I believe you can use a template tag too if you like.
- sbjs 8y agoAh right, thanks. Yes this always looks backwards to me. The body of a loop should be inside of it. But here it is the body of the loop. That is very strange.