Just started exploring VueJS and I recently learned how to use a v-for loop to populate a Select Options box.
<select>
<option v-for="person in persons" :value="personid">{{ personname }}</option>
</select>
Below is the list I am working with.
"persons": {
"2": "Person1",
"3": "Person2",
"4": "Person3"
}
This is the desired outcome for the Select Options box.
<select id="persons">
<option value="3">Person1</option>
<option value="4">Person2</option>
</select>