Sample Code:
<!DOCTYPE html>
<html>
<script src= “http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js”></script>
<body>
<div ng-app=”” ng-init=”mySwitch=true”>
<p ng-show=”mySwitch”>Check to see and uncheck to hide</p>
<p><input type=”checkbox” ng-model=”mySwitch”/>Show/Hide</p>
<p>{{ mySwitch }}</p>
</div>
</body>
</html>
Output:
Cheers!!!