Is there a way to disable clicking on a checkbox while still keeping an ng-click function attached?
<input id="record-2" type="checkbox" class="checkbox" ng-click="doIfChecked()">
I've tried using ng-readonly and ng-disabled, as well as css pointer-events: none, but none of these solutions have worked. I need the checkbox to be unclickable based on a true/false expression. Any ideas on how to achieve this?