How can I filter the ng-repeat to only display rows where all key/value pairs are present?
HTML
<div ng-app="myApp" ng-controller="oneController">
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Country</th>
<th>1960</th>
<th>1970</th>
</tr>
<tbody>
<tr ng-repeat="country in countries | orderBy: country.name">
<td>{{country.name}}</td>
<td>{{country.1960 | number}}</td>
<td>{{country.1970 | number}}</td>
</tr>
</tbody>
</table>
Javascript
angular.module('myApp', []).
controller('oneController', function($scope) {
$scope.countries = [
{"name":"Aruba", "1960":"1567"},
{"name":"Andorra","1960":77865,"1970":78360},
];
});
In this scenario, I specifically want to exclude Aruba and only show Andorra.
Complete example on CSSDeck: (excluding Aruba)