AngularJS Example:
by vinodlouis
HTML
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
<div ng-controller="mycontroller">
<input type="checkbox" ng-repeat="fruit in checkbox" ng-model="fruit" ng-checked="checkedC()"> </input>
</div>
</div>
JavaScript
function mycontroller(){
$scope.checkBox = ["mango","grape","orange","apple"];
$scope.checkedC = function(val){
alert(val);
}
}