[Vuejs]-How to display array in an array in vue

0👍

Try something like this

<nb-list-item v-for="cardTransactions in card_transactions" :key="cardTransactions.data.id">
  <template v-if="cardTransactions.data && cardTransactions.data.length > 0">
    <div v-for="(transaction, i) in cardTransactions.data" :key="cardTransactions.data.id + '-transaction-' + i">
      <p>
        <strong v-text="cardTransactions.message" />
        <div>
          {{transaction}}
        </div>
      </p>
    </div>
  </template>
</nb-list-item>

Leave a comment