I want to toggle visible button when array changed. But I can't do it.What is the best way to do this?
Here is my example.
https://codesandbox.io/s/relaxed-poincare-vv6xh?file=/src/components/HelloWorld.vue
I want to toggle visible button when array changed. But I can't do it.What is the best way to do this?
Here is my example.
https://codesandbox.io/s/relaxed-poincare-vv6xh?file=/src/components/HelloWorld.vue
You try updating toggleUser function like below:
toggleUser(value) {
this.$set(this.markedUserArr, this.index, value);
}
Check this for more details