javascript - How to make checkboxes checked at run time -
i constructing check boxes @ run time using ng-repeat check html code-
div data-ng-repeat="data in cntrl.columndetailsonload"> {{data.displayname}} <input type="checkbox" id="{{data.id}}" data-ng-model="cntrl.check[data.id]" {{data.checked}}><br> object data has property "checked" :"checked" , not working .
object structure -{ "id": "value.cyclestatus", "status": "1", "position": "1", "displayname": "status" },
you can bind value object ng-model="x", , set value of x preferred check inside controller.
Comments
Post a Comment