I'm working on a project where I have a list of items with checkboxes, and I need to calculate the number of checked rows. Below is my directive code:
<ul ng-repeat="person in list">
<li>
<input type="checkbox" ng-model="selected" >
<label ng-class="{blue:list.length>3,red:list.length<=3}"> {{person.name}}</label>
</li>
</ul>
Can someone guide me on how to use Angular to display the number of checked persons?