[Vuejs]-Grouping unique objects and their values from an array of objects in VueJs

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>

Leave a comment