29 ms·
This is the kind of low-down I look for on these frameworks. It can be difficult to get insight from people who've been deep into a framework because they seem
by Pigo 7y ago
This is the kind of low-down I look for on these frameworks. It can be difficult to get insight from people who've been deep into a framework because they seem to get emotionally attached to their favorite. They ALL start from some well thought out paradigm, and can do what they were designed to do really well. How difficult is it when you start hitting those edge-cases?
- tqkxzugoaupvwqr 7y agoI think OP took a look at Vue but stopped at a very superficial level. Vue’s Getting Started guide mentions how to handle both cases OP complaints about. If you want to display only some items of an array, it is recommended to compute a new array that only includes the items you want to display[1]. A less performant way is to put a v-if into your v-for loop[2]. If you have a v-for loop `item in items` you can access `item` in any attribute. See [3] for an example. [1] https://vuejs.org/v2/guide/list.html#Displaying-Filtered-Sorted-Results https://vuejs.org/v2/guide/list.html#Displaying-Filtered-Sor... [2] https://vuejs.org/v2/guide/list.html#v-for-with-v-if https://vuejs.org/v2/guide/list.html#v-for-with-v-if [3] https://vuejs.org/v2/guide/list.html#v-for-with-a-Component https://vuejs.org/v2/guide/list.html#v-for-with-a-Component