im new in VueJs and i have on object that includes some array in there like below and i want to show sum off all amount in one of the column table my table :
<tr v-for="(transaction,index) in transactions" >
<td>{{ index }}</td>
<td>show sum of all amount here</td
</tr>
and transaction is :
026b148e-c7dd-4891-b4d1-15a492c971a4: [
{
id: 106,
type: "income",
created_at: "2020-06-28 13:44:08",
updated_at: "2020-06-28 13:44:08",
amount: 10,
description: null,
type_of_pay: "group",
invoice_number: "026b148e-c7dd-4891-b4d1-15a492c971a4",
},
{
id: 107,
type: "income",
created_at: "2020-06-28 13:44:08",
updated_at: "2020-06-28 13:44:08",
amount: 1,
description: null,
type_of_pay: "group",
invoice_number: "026b148e-c7dd-4891-b4d1-15a492c971a4",
package: {}
}
],
how can i do what i want simple and clear?