[Vuejs]-Generating ids for divs in Vue.JS

5👍

Don’t use interpolation in attributes, use binding instead

<div class="card" v-for="(x,index) in response">
  <div :id="index" class="collapse show" role="tabpanel" aria-labelledby="headingOne"></div>
</div>

Leave a comment