I have an issue with my AngularJS checkbox where they become undefined when they are unchecked. Can't figure out why this is happening.
<input type="checkbox" name="available" ng-model="formData.available" ng-true-value="1" ng-false-value="0" required>
With the above code; default on page load is 0. when Its checked it becomes 1. When I uncheck it it becomes undefined
Any help appreciated.
requiredand working as expected