Ng-If

 
 
 
<!DOCTYPE html> <html lang="en-US"> <head> <title>Welcome in the Angular JS</title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-rc.1/angular.min.js"></script> </head> <body ng-app> <div> <input type="checkbox" ng-init="checked = true" ng-model="checked" /> <div ng-if="checked">I am displayed when checkbox is checked</div> </div> </body> </html>
Output