I want to loop through the the nested object.
"movieRating": {
"rate": [{
"rating9": 9,
"count9": 158
}, {
"rating8": 8,
"count8": 101
}, {
"rating7": 7,
"count7": 32
}, {
"rating6": 6,
"count6": 48
}, {
"rating5": 5,
"count5": 125
}],
"totalCount": 456}
This is my HTML file
<div *ngFor="let movie of movies" class="container">
<table class="table">
<tbody>
<tr >
<th><img src="#"></th>
<td >{{movie.movieRating.rating9}}</td>
</tr>
</tbody>
</table>
</div>
If I try {{movie.movieRating.rating9}} this is not working.
But {{movie.movieRating.totalCount}} works.
Is there a way to get rating9 and count9.