{ "id": "c1", "imageUrl": "xxx.png", "name": "牛投網", "industry": "移動互聯網", "state": "A輪", "people": "50-150人", "positionClass": [ { "id": "jishu", "name": "技術", "positionList": [ { "id": "p1", "name": "前端工程師", "createdDate": "2020-04-16 23:30", "salary": "15k-25k" } ] }, { "id": "yunying", "name": "運營", "positionList": [ { "id": "y1", "name": "運營總監", "createdDate": "2021-04-10 13:30", "salary": "25k以上" } ] } ]}現在有如上一段數據,使用Angular的ng-repeat循環到第一層的時候可以,例如:<div ng-repeat="dt in data.positionClass" ng-bind="dt.name"></div>可以循環得到技術、和運營兩條數據?,F在想再單獨寫一個div,來循環positionList里面的數據<div ng-repeat="pls in positionList" ng-bind="pls.name"></div>這樣怎么取不到值。正確的寫法是什么?
使用Angular怎么讀取數據對象內數組的數據
素胚勾勒不出你
2018-11-14 13:15:32
