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

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -