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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -