I am creating a table of users where I want to add a checkbox on each row and a delete button. When I click the delete button, I want to delete all users who were selected.
Now I am creating these user entries from an API response which gives me say id, name and email.
So my view looks something like this:
<tr ng-repeat="user in MyCntrl.data.users track by $index">
You could simply do
<input type="checkbox" ng-model="user.isSelected">
And then just filter
MyCntrl.data.users for those that have
isSelected === true