Krishnamoorthy M
Krishnamoorthy M

Reputation: 37

Fetch the value of nested object from API response

If I have the following API response, how to fetch the value player using ngFor in angular 7?

enter image description here

Upvotes: 1

Views: 76

Answers (1)

Prashant Pimpale
Prashant Pimpale

Reputation: 10697

If you want to get the list of all players i.e teama_player list so you can just:

<div class="col" *ngFor="let obj of summeryDetail.match_details.team_a.teama_player">
   {{obj.player}}
</div>

Upvotes: 1

Related Questions