0
You could create a method:
methods: {
isSelected (key) {
return this.selected.includes(key);
}
}
and set v-model to v-model="isSelected(key)"
- [Vuejs]-Nuxt – result.forEach is not a function?
- [Vuejs]-Firestore Not Writing User Data to Data Base
0
try:
<v-card v-for="(item, index) in myData">
<v-checkbox v-model="item" :name="index" ></v-checkbox>
</v-card>
What i dont get is.. Why is your myData a obj and not an array of obj? Then you could do this:
<v-card v-for="item in myData">
<v-checkbox v-model="item.checked" :name="item.name" ></v-checkbox>
</v-card>
Source:stackexchange.com