multi checkbox

HTML

<div ng-app>
<div ng-controller="Ctrl">
    <input type="checkbox" 
    ng-checked="child_1 || child_2 || child_3 || child_4 || child_5" ng-model="parent"/> Select All<br/>
        <input type="checkbox" ng-model="child_1" ng-checked="parent"/> First<br/>
        <input type="checkbox" ng-model="child_2" ng-checked="parent"/> Second<br/>
        <input type="checkbox" ng-model="child_3" ng-checked="parent"/> Three<br/>
        <input type="checkbox" ng-model="child_4" ng-checked="parent"/> Four<br/>
        <input type="checkbox" ng-model="child_5" ng-checked="parent"/> Five<br/>
    </div>
</div>
<script>
function Ctrl($scope) {}
</script>

JavaScript

// angular - Select All Checkboxes Demo