object filter
http://stackoverflow.com/questions/14788652/how-to-filter-key-value-with-ng-repeat-in-angularjs
by bmleite
HTML
<div ng-controller="TestCtrl">
<div ng-repeat="(k,v) in filterSecId(items)">
{{k}} {{v.pos}}
</div>
</div>
JavaScript
var app = angular.module('app', []);
function TestCtrl($scope) {
$scope.items = {
'A2F0C7':{'secId':'12345', 'pos':'a20'},
'C8B3D1':{'pos':'b10'}
};
$scope.filterSecId = function(items) {
var result = {};
angular.forEach(items, function(value, key) {
if (!value.hasOwnProperty('secId')) {
result[key] = value;
}
});
return result;
}
}