我需要顯示覆選框或NG重複裏面的一些標誌位的列表:如何在內部管理ng-repeat?
<div style='width:630px;' ng-repeat='item in shops'>
// switch html here
</div>
基本思路是:我有「$scope.shops
」點陣 - 主陣列,管理由ng-repeat
,裏面陣列20級的對象。
$scope.shops = [
{
logo: '',
address: '',
city: ''
},
{
logo: '',
address: '',
city: ''
},
....
]
我有另一個帶有類似對象'$scope.checkForShops
'的小陣列。 如果對象'$scope.checkForShops
'在'$scope.shops
'中可用,我需要在ng-repeat中顯示額外的html。不知道該怎麼做?