Issue
<input class="ML1" type="checkbox" ng-checked="item.ph_comp_change" ng-model="item.ph_comp_change" ng-true-value="1" ng-false-value="0" />
This makes an input checkbox, but the problem is I need to uncheck it 2 times, in order to remove check sign from it. But if I remove ng-true-value="1" ng-false-value="0", it works fine.
Working JS Fiddle http://jsfiddle.net/U3pVM/14616/
Solution
You need to put condition on ng-checked
ng-checked="item.ph_comp_change === 1"
it will work.
Answered By - Anita
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.