问题
Iterate over an object that is the response from REST API
Here is the URL for Stackbliz https://stackblitz.com/edit/angular-iterator-stringobj
<div *ngFor = "let Data of student">
<ul *ngFor="let test of Data.value | keyvalue">
<li>{{test.key}} :: {{test.value}</li>
</ul>
</div>
and also tried with
<ul *ngFor = "let Data of student.value">
<li>{{Data.pass}}</li>
</ul>
I expect the output as
ID : 123 Name : Test Pass : true [yes] verified : true
来源:https://stackoverflow.com/questions/55589669/cannot-find-a-differ-supporting-object-of-type-string-in-angular6