I\'ve tried to use the html5 required attribute for my group of checkboxes but I don\'t find a nice way to implement it with ng-form.
required
When a checkbox is che
{{animal}} $scope.toggleAnimal = function(animal){ var index = $scope.selectedAnimals.indexOf(animal); if(index == -1) { $scope.selectedAnimals.push(animal); } else{ $scope.selectedAnimals.splice(index, 1); } }
See the full detail and demo and other related examples