[Vuejs]-VueJS iterate through the arrays in an object?

0👍

Your second v-for loops over the entire options object, but most likely you wan to loop over options[id].

Try to update the second v-for to this

<option v-for="(option, prop, val) in options[id]" :key="val" v-bind:value="option">{{[index]}}{{[val]}}</option>

Leave a comment