Look in a different angle using Angular.js
http://amitgharat.wordpress.com/2012/09/16/look-in-a-different-angle-using-angular-js/
HTML
<div ng-app>
<div>
<input type="checkbox" ng-model="parent" ng-checked="child_1 && child_2 && child_3 && child_4 && child_5"/> 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>
JavaScript
// http://amitgharat.wordpress.com/2012/09/16/look-in-a-different-angle-using-angular-js/