All checkboxes get checked when one is checked (should be just the one checked) - inputs generated with angular js
问题 I am making app with angular js. It goes like this. User creates groups and adds group names User creates 'websites' and for each website he can check groups that are created in previous step Problem is that all groups checkboxes get checked when he checks just one. Here is the code that generates the checkboxes: <p>Groups: <label ng-repeat='group in groups'> <input type="checkbox" ng-model="newSite.groups" name="group-check" value="{{group.id}}"/> {{group.name}}</label></p> Here is the code