In the following stackblitz sample. I have the following data:
My table is displaying what I want, As you can see inside the timeline object the "start" values are exactly the same as the ones inside the aval array
Therefore, is there anyway I can display those table headers without the timeline object? (using filter, reduce or Array.from) Maybe I can loop to that very nested aval array and get them as an individual array kinda like
"aval" = ["11-19", "11-20", "11-21", "11-22"]
I'm using filter but getting nowhere so far.
DATA:
{
"timeline": {
"timeline_values": [{
"tag": 0,
"start": "11-19"
},
{
"tag": 1,
"start": "11-20"
},
{
"tag": 2,
"start": "11-21"
},
{
"tag": 3,
"start": "11-22"
}
]
},
"employees": [{
"EmployeeID": "56250f",
"FirstName": "Downs",
"aval": [{
"start": "11-19",
"end": "2",
"ava": "30",
"health": "4"
},
{
"start": "11-20",
"end": "2",
"ava": "40",
"health": "4"
},
{
"start": "11-21",
"end": "2",
"ava": "50",
"health": "4"
},
{
"start": "11-22",
"end": "2",
"ava": "60",
"health": "4"
}
]
},