8
Como filtrar (chave, valor) com ng-repeat em AngularJs?
Estou tentando fazer algo como: <div ng-controller="TestCtrl"> <div ng-repeat="(k,v) in items | filter:hasSecurityId"> {{k}} {{v.pos}} </div> </div> Parte AngularJs: function TestCtrl($scope) { $scope.items = { 'A2F0C7':{'secId':'12345', 'pos':'a20'}, 'C8B3D1':{'pos':'b10'} }; $scope.hasSecurityId = function(k,v) { return v.hasOwnProperty('secId'); } } Mas de alguma forma, ele está me mostrando todos os itens. Como posso …