This is the Angular code snippet I am currently working with:
$scope.receipts = {
acquirer : [
{
id: 1,
name: "test",
balanceAmount: 4462.29,
cardProducts: [
{
cardProduct: {
balanceAmount: 2222,
id: 1,
name: "MASTERCARD CREDITO",
lancamentos: [
{
description: "vendas",
payedAmount: 1111
},
{
description: "cancelamentos",
payedAmount: 1111
}
]
}
}
]
}
]
};
I'm attempting to use ng-repeat to create a table as shown below:
<tbody ng-repeat="i in receipts.acquirer[0].cardProducts[0].cardProduct">
<tr>
<th>
<div class="cardFlag brand_1"></div>
{{ i.name }}
</th>
</tr>
</tbody>
However, the output does not display the card name "MASTERCARD CRÉDITO". What could be the issue in my code? Is my usage of ng-repeat incorrect?