0๐
โ
A simple for loop in template solved it for me โ
<select name="block" v-model="block">
<option
v-for="blk in unitList"
:key="blk.id"
:value="blk.id"
>{{ blk.block}} - {{ blk.unitNumber }}</option>
</select>
Source:stackexchange.com