Receiving data from the server:
{
"12312412": {
"id": "12312412",
"something": {
"54332": {
"id": "54332",
"nextNode": {
"65474": {
"id": "65474",
"data": "any"
},
"235235": {
"id": "235235",
"data": "any"
},
"543524": {
"id": "543524",
"data": "any"
}
}
}
}
},
"23242434": {
"id": "23242434",
"something": {
"3234234": {
"id": "3234234",
"nextNode": {
"645636": {
"id": "645636",
"data": "any"
},
"1543534": {
"id": "1543534",
"data": "any"
},
"12312412": {
"id": "12312412",
"data": "any"
}
}
}
}
}
}
Now, looking to loop through nested objects using ngfor in Angular 9. Wondering if creating multiple loops and converting it into an array would optimize performance. Any suggestions for a more efficient solution? Thank you.