<!DOCTYPE html>
<html>
<head>
<script src="http://code.angularjs.org/1.2.0-rc.2/angular.js"></script>
<script>
function mainController($scope) {
$scope.display = {
ngShow: true,
ngHide: true
};
$scope.ngShowhide =true;
$scope.ngShowhideFun =function(flag){
};
}
</script>
</head>
<body ng-app>
<div ng-controller="mainController">
<div ng-click="ngShowhideFun(ngShowhide)">
<div ng-show="ngShowhide">
<div>Anil1</div>
</div>
</div>
</div>
</body>
</html>
// Code goes here
/* Styles go here */