Edit in JSFiddle

<div ng-app="selectApp" ng-controller="selectAll">
<input type="checkbox" ng-click="toggleSelect()" /> Select All <br />
      <div ng-repeat="checkbox in checkboxes">
         <input type="checkbox" name="{{checkbox.name}}" value="{{checkbox.value}}" ng-click="clearParent()" ng-model="checkbox.selected">{{checkbox.label}}
      </div>
</div>
angular.module("selectApp", []).controller("selectAll", function($scope){
	$scope.checkboxes = [ 
		{name:'check[]', value:"1", label: "This is Item 1", selected : false}, 
    	{name:'check[]', value:"2", label: "This is Item 2", selected : false}, 
		{name:'check[]', value:"3", label: "This is Item 3", selected : false}, 
		{name:'check[]', value:"4", label: "This is Item 4", selected : false}
	];
	
	$scope.toggleSelect = function(){
		angular.forEach($scope.checkboxes, function(item){
			item.selected = event.target.checked;
		});
	}

});