ng-show or hide a given HTML element depending on the value.

 

<input type="checkbox" ng-model="myModel" >Hide me
<h1 style="margin:0px;" ng-show="myModel">Coding Droid</h1

 

 

<input type="checkbox" ng-model="myModel" ng-init="checked">Hide Me
<h1 style="margin:0px;" ng-hide="myModel">Coding Droid</h1>

 

 

Note: ng-hide adds a .ng-hide CSS style class to the element.