I get a specific user from my dummy json file and looks like this:
"id": "2",
"name": "Marios Manolakeris",
"skills": [
{
"skill_1": "Machine Learning",
"skill_2": "AI",
"skill_3": "C++"
}
]
I need to iterate through skills, even if theoretically i don't know the key values skill_1, skill_2, skill_3.
So, a solution is to do this:
<div *ngFor="let skill of user.skills">{{skill.skill_1}}, {{skill.skill_2}}, {{skill.skill_3}}</div>
but, I want to iterate through user.skills automatically.
Is there any way? Thanks!