3 ms·
Another way of rendering lists is like this: <ul id="example-1"> <template v-for="item in items"> <li>{{ item.message }}</li> </templat
by ratww 7y ago
Another way of rendering lists is like this:
<ul id="example-1">
<template v-for="item in items">
<li>{{ item.message }}</li>
</template>
</ul>
- ergothus 7y agoInteresting. I was taking the example straight from their docs: https://vuejs.org/v2/guide/list.html https://vuejs.org/v2/guide/list.html What you have here does fix the 1:1 issue, but introduces an extra layer of abstraction that still feels unnecessary/less straight-forward compared to the React version.