[Vuejs]-Vue How to seperate forloop button table into different row in table

1👍

You need to set the v-for on the tr if that is the element you want to repeat:

<tr
    :key="trend.Trends"
    v-for="trend in topThreeTrends">
  <td>
      <button @click="LoadTrend(trend.Trends, trend.DT)">{{trend.Trends}}</button>
  </td>
</tr>

Leave a comment