Cannot find a differ supporting object of type 'string in angular6

↘锁芯ラ 提交于 2019-12-11 16:55:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!