1👍
✅
You’re probably better off using an @input event on the checkbox, and tying that to the api call:
<input type="checkbox" @input="onCheckChange">
...
methods: {
onCheckChange() {
// Perform API call here.
}
}
Source:stackexchange.com