Recently, I delved into the world of vue.js and have been trying to familiarize myself with it.
I've spent quite a bit of time tinkering around to make this simple example function: extracting the values of selected checkboxes in components using vue.js .
You can view my example at http://jsbin.com/gukoqo/edit?html,js,output
How can I ensure that the parent instance's selected
property contains the selected checkbox values? For example, if filter_a and filter_c are selected, then selected
should be an array: ['filter_a', 'filter_c']
I assumed that vue.js would provide a straightforward solution for this, but I am still unclear about how to achieve it. Any insights? :)
I'm working with the latest version of vue.js (2.3.3 currently).