[Vuejs]-Is it possible to put a bullet in a v-for?

3👍

First split string into array and then loop the array

<q-list
                  v-for="specificPackage in specificPackages"
                  v-bind:key="specificPackage.id"
                  class="q-pa-md"
                  bordered
                >
                <q-card-section horizontal>
                  <q-card-section class="q-pt-xs">
                    <div class="text-h6 q-pt-md text-black" caption>
                      LABORATORY TESTS:
                    </div>
                    <div class="text-subtitle1 q-pt-md packageitem">
                      <li v-for="(packageitem, i) in specificPackage.packageitem.split(',')" :key="i">
        {{packageitem}}
    /li>
                    </div>
                  </q-card-section>
                </q-card-section>
              </q-card>
              <q-separator />
            </q-list>

Leave a comment