Skip to content Skip to sidebar Skip to footer

Generate Ng-model Inside Ng-repeat

I have been reading a few topics but couldnt find a solution to this one I am stuck on. I am trying to add ng-model inside ng-repeat something like this: Copy

... and the you can populate it like that:

<span ng-repeat="list in lists">
    <input type="checkbox" ng-model="formData.checkboxes[list.value]"/> 
             {{ list.value }} {{ list.number }} {{ list.description }} <br/>
</span>

Please take a look at this JSFiddle for working example.


Post a Comment for "Generate Ng-model Inside Ng-repeat"