0👍
When you select the checkboxes, the v-model
variable updates itself with the selected values and this is what two-way binding does. Console the multipleSelection
inside your method-
methods: {
handleSelectionChange() {
// It will console only selected items
console.log(this.multipleSelection);
}
}
You should see that only selected items are available inside multipleSelection
.
Source:stackexchange.com