[Vuejs]-Trying to get the records only which are checked in vue JS

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.

Leave a comment