AngularJS Add Value Of Checkboxes To An Array
Answer : ng-true-value only accepts strings so you'll need to use a workaround. This has been a feature request for some time. In the meantime, you can do this: Create an ids object in the controller like: $scope.ids = {}; and change ng-model to reference a key in that object. You can use the default true/false checkbox values: <td><input type="checkbox" ng-model="ids[doc.provider.Id]"></td> Then you can loop over the keys in ids checking for true . Here is a fiddle I found that this directive provided the functionality I was looking for. The main problem I ran into with the more common solutions is that I have two arrays which I needed to store data compatible with a multi select list. The checklistModel directive provides this very basic functionality and works with multiple models. I will start by saying that I really don't like the options for doing this in angular. I can't even say that this is better than th...