Angular version: 1.2.26
<div class="checkbox col-md-12 {{m.state ? ‘selected‘ : ‘‘}}" ng-repeat="m in ksType| filter:keyWords">
<label>
<input type="checkbox" ng-model="m" ng-checked="m.state" value="" ng-change="chooseCheck(m)">{{m.MC}}
</label>
</div>
The above code (ng-mode= "M") binding failure, the flip wall on Google search for most of the day, there is a foreigner explained that the angular kernel design errors, in the new controller loop array elements can not be bound, as if the new version has been resolved, However, if you are under 2.0 can also be resolved, the solution is to define a new attribute within the "M" object, the solution such as: m.state, binding success!!!
This article will be supplemented by a deeper understanding of the angular kernel later.
This article from the "Do not abandon do not give up" blog, please be sure to keep this source http://noultimate.blog.51cto.com/4194949/1637451
A collection of small problems in the development of Angularjs a single object array element in a new controller cannot be bound