Vue how to select all checkbox?

Hi all, this question
I have a table, there is a checkbox for each row generates a copy of the component, via $emit I listen to this component and get the parent its status from id
how to select or clear all checkboxes , in pure js but can easily vue can it?
March 19th 20 at 08:36
1 answer
March 19th 20 at 08:38
Solution
You need parent component to store an object, which will contain the state of a child checkbox.

values = {
 id: value,
....
};


Accordingly at $emit you update a value in values. And these same values prokidyvaya to child components via props.

Find more questions by tags Vue.js