I am facing an issue in my code where the input is not properly binding to the checkbox. In my controller, I have defined a member variable like this:
$scope.sameOptionsOnReturn = true;
And in my view, I have set up the checkbox as follows:
<input type="checkbox"
ng-model="sameOptionsOnReturn"
ng-checked="sameOptionsOnReturn"
ng-value="true"
ng-change="setReturnOptions" />
Despite setting up the ng-model and ng-checked properties correctly, the input always shows true. Can anyone help me figure out what's wrong with this setup?
Note: Removing ng-value="true"
does not solve the issue.