0👍
The problem was you cannot use v-if and v-for on the same node like I did so this is how I fix it
<template v-if="item.childrenVisible">
<tr v-for="child in item.children" :key="child.id">
<td>{{ child.name }}</td>
<td>{{ child.parent }}</td>
<td>
<button @click="toggleChildren(child)">Toggle Children</button>
</td>
</tr>
</template>
I split up the v-for
and v-if
to two different node template
and tr
- [Vuejs]-I want to show the total number of catalogues available for each stores on the side of the store name using vue js using an array
- [Vuejs]-Pass data values as parameters Vue.js
Source:stackexchange.com