I have a the following HTML:
<li ng-repeat="test in lists.Tests">
<label>
<input type="checkbox" id="cbxAcceptTest" ng-checked="{{test.IsAccepted}}" ng-click="testSelection($event,{{test}})" />
</label>
</li>
and the testSelection method as :
$scope.testSelection = function ($event, test) {
if (test.IsAccepted) {
alert('accept');
}
else {
alert('reject');
}
};
I am not able to trigger this method on ngClick, It works on ngChecked, but then I have to use ngModel, which Ive read does not go with ngChecked in the following link.