I have a hashed map object that the key is a string representing a class number and the value for each key is an Arraylist of Student object so in general the object that I want to iterate through is of type:
Map<String,Arraylist<Student>>
I want to display a tree like structure of the object values, I tried to use :
<div *ngFor="let key of MyObject">{{key}} </div>
But this shows only the class number but it does not show the students names in each class. does anyone know how to iterate through each key and each object inside that key?
console.log(JSON.stringify(myObject)), and post the result.Post it in your question, not in a comment.