Answers for "Checkbox not binding to scope in angularjs"

0

Checkbox not binding to scope in angularjs

//What worked was to bind the input to an object instead of a primitive (angularJs 1.x)
<!-- Partial -->
<input type="checkbox" ng-model="someObject.someProperty"> Check Me!

// Controller
$scope.someObject.someProperty = false
Posted by: Guest on December-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language