i currently have an array of objects i use to generate html checkboxes (ng-repeat). All those objects have an x.checked = true / false attribute. How can i set this x.checked = false for all objects at once?
Right now i use a simple for loop.
for(var i = 0; i < array.length; i++) {
array[i].checked = false;
}
Does Angular have a faster or shorter way of doing this?
Thanks!
ng-initor loop I guess. plnkr.co/edit/JQnCnmSEAqyj93Sgs9KJ?p=preview