[Vuejs]-Array elements are shown twice

0👍

You have the elements repeated in the templated. Like this they won’t be repeated

  <div class="container">
      <div class="row" v-for="objData in data" :key="objData.label">
        <div class="line col-2">{{objData.label}}</div>
        <div class="line col-3 ">{{objData.value}}</div>
        <div class="vl"></div>

      </div>
    </div>

    props: {
      data: {
        type: Array
      }
    }

Leave a comment