I have a JSON response , Below is my response.
{
"data": [
{
"2": [
{
"name": "Test1",
"Address": "Test2"
},
]
},
{
"5": [
{
"name": "Test3",
"Address": "Test4"
},
]
},
]
}
I am able to access till data from the response.Here "2" and "5" are date.If one date is present in this json response then for that response i have to get name and address But I have to show list of data.
<div *ngFor = "let data of result">
<span>{{data.name}}</span>
<span>{{data.Address}}</span>
</div>
In ts file,
let result = response.data;
I want to access name and address from this.Can anyone please help me how to do this.