Angular Service Variables
HTML
<div ng-app="myApp" ng-controller="ctrl">
<form name="myForm" ng-submit="act()">
<input type="checkbox" ng-model="item.checked" ng-repeat="item in items">
<button type="submit">Submit</button>
</form>
</div>
JavaScript
var app = angular.module('myApp', []);
function ctrl($scope) {
$scope.items = [{
_id: 'a'
}, {
_id: 'b'
}, {
_id: 'c'
}];
$scope.act = function () {
var checkedItems = [];
angular.forEach($scope.items, function (item) {
if (item.checked !== undefined && item.checked) checkedItems.push(item);
});
console.log(checkedItems)
}
}