0
我需要根據從ng-repeate獲得的值過濾一些數據。 我的html看起來像這樣。 我需要使用值如何使用ng-repeat值過濾ng-repeate中的數據
<div ng-repeat="value in selectedIds">
<h6>Id</h6>{{}} <br/>
<h6>Name</h6>{{}} <br/>
<h6>Age</h6>{{}} <br/>
</div>
和我的控制器看起來像
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
$scope.selectedIds=[{id:"123"},{id:"124"},{id:"125"},{id:"126"}];
$scope.allData=[{id:"123",name:"James",age:"21"},
{id:"124",name:"James",age:"21"},
{id:"125",name:"Frank",age:"22"},
{id:"126",name:"John",age:"24"},
{id:"127",name:"Jimmy",age:"26"},
{id:"128",name:"Ann",age:"61"},
{id:"129",name:"Mark",age:"41"},
{id:"130",name:"Lach",age:"33"}
];
});