hello every one i have this api
[
[{
"id": 1,
"qte": 12,
"date_creation": "2020-08-17T00:00:00+02:00",
"date_update": "2020-08-17T00:00:00+02:00",
"depot": {
"id": 1,
"nom_depot": "bb"
},
"produit": {
"id": 1,
"matricule": "ff",
"prix": 12,
"libelle": "dd"
}
}],
[]
]
but when i want to display just the Qte ,the libelle of produit and nom_depot of depot like this
<tr *ngFor="let
data of
depot ;let
i= index"
(click)=addToAnotherTable(i)>
<td>
<span>{{data.depot.nom_depot}}</span>
</td>
<td>
<span>{{data.produit.libelle}}</span>
</td>
<td>
<span>{{data.qte}}</span>
</td>
</tr>
it doesn t work i don t know why pls help
<tr *ngFor="let data of depot[0]; let i=index". Then if possible, it must be fixed in the backend to remove the parent array.