offspring
template: `
<li v-for="option in listaOptiuni" :key="option.id">
<input @change="updateSelectAllToateOptiunile(); sendListaToateOptiunile()" v-model="listaToateOptiunile" :value="option" :id="option" type="checkbox" class="uk-checkbox">
<label :for="option">{{ option.denumire }}</label>
</li>
`
data: function() {
return {
listaToateOptiunile: []
}
}
ancestor
<my-component v-model="myList"></my-component>
Is there a way to transfer the content of listaToateOptiunile directly from the offspring component into the v-model myList in the ancestor component?