items={{items}}
Number of items which have 1 point: {{items.$count('points==1')}}
Number of items which have more than 1 point: {{items.$count('points>1')}}
items={{items}}
Number of items which have 1 point: {{items.$count('points==1')}}
Number of items which have more than 1 point: {{items.$count('points>1')}}
<html>
<head>
<script type="text/javascript"
src="http://angular.getangular.com/angular-1.0a.js#database=docsdb"></script>
</head>
<body>
<div ng-init="items = [{a:'knife', points:1}, {name:'fork', points:3}, {name:'spoon', points:1}]">items={{items}}</div>
Number of items which have 1 point: {{items.$count('points==1')}}<br/>
Number of items which have more than 1 point: {{items.$count('points>1')}}<br/>
</body>
</html>