I have an object as following below:
scores = {"grade1":
{"math":"120","english":"100"},
"grade2":
{"math":"50","english":"50"},
"grade3":
{"math":"90","english":"70"}
}
I want to display object key with *ngFor
to look like this:
Field: grade1
Field: grade2
Field: grade3
I tried using Object.keys(scores)
but it doesn't work.