We have the below HTML code which uses Angular.js,
<div ng-if="$scope.IsResult == false">
<label style="font-weight: bold;"> Count : {{student.length }}</label>
</div>
Here the student is the JSON array returned and contains few records with student.Active=false.
Currently its displaying all students count. We need to display the length only for active students i.e student.Active=true. How can I achieve this in Angular.js.
Please advise.
.Count({ active: true})to find how many items have active set to true!