0๐
โ
<ul class="category__list">
<li v-for="(category, index) in categoriesData[categoryTitle]" :key="index">
<input type="checkbox" :value="category" v-model="selectedCategories">
{{category}}
</li>
</ul>
If you use v-model on checkbox input and declare it as array Vue will automaticly do the job for you.
SelectedCategories array will be checked boxes.
Source:stackexchange.com