Answer the question
In order to leave comments, you need to log in
How to bind checkboxes to an array in Vue.JS?
I need to form an array of clicked elements (checkboxes).
The code is simple:
<div class="imgType">
<div v-for="img in images_types" v-bind:value="img">
<div><input type="checkbox" v-model="selected_images_types">{{img}}</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question