我是新來的角js,正在通過角度doc中的文檔。我試過這種方式,但沒有顯示數據。難道我做錯了什麼?數組中的Ng重複數組
我的數組:
$scope.newArray = [{
name: 'Robert',
chemical: [{
chem_status:"Active",
chem_code:"0098A"
}]
place: 'London'
},
{
name: 'Andy',
chemical: [{
chem_status:"Active",
chem_code:"0098A"
}]
place: 'London'
}
];
這裏是我的html代碼: -
<tr role="row" ng-repeat="chemical in newArray.chemical by $index">
<td class="sorting_1">{{chemical.chem_status}}</td>