Within my Angular application, there is a form that includes checkbox inputs:
<div ng-repeat="partner in type.partners">
<label class="checkbox-inline">
<input type="checkbox" value="partner"
ng-checked="report.participatingPartners[$parent.$index].indexOf(partner) !== -1"
ng-click="toggleSelection($parent.$index, $index);">
<p><span></span>{{partner.name}}<p>
</label>
</div>
In order to test this configuration, I have implemented the following code snippet within my controller:
var vm = this;
vm.toggleSelection = toggleSelection;
However, despite setting up the above function, it does not get triggered whenever I interact with the checkbox or its label. What could be causing this issue?
I have ruled out the controllerAs
syntax as the problem since other functions are functioning correctly.