[Vuejs]-Output Checkboxes From Nested Array

0👍

After my data structure was improved, I could loop through it as expected.

 <div v-for="(item, index) in info" :key="index" class="form-check">
    <div v-for="(category, index) in item.category_data" :key="index">
        <input type="checkbox" class="form-check-input" v-model="cat_data" :id="index" :value="index">
        <label class="form-check-label">{{ category }}</label>
    </div>
 </div>

Leave a comment