Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #Checkbox #binding #scope #angularjs
ADD COMMENT
Topic
Name
6+6 =