var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Hide/Show</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.0.x" src="http://code.angularjs.org/1.0.7/angular.min.js" data-semver="1.0.7"></script>
<script src="app.js"></script>
</head>
<body>
<h1>Hide and Show in AngularJS</h1>
<p>Follows the tutorial from http://www.wittysparks.com/2013/06/09/toggle-or-show-or-hide-is-pretty-easy-with-angularjs/</p>
<a href="#" ng-model="collapsed" ng-click="collapsed=!collapsed">Click here to <strong>Toggle (show/hide)</strong> description</a>
<div ng-show="collapsed">I am description for the above title, which was collapsed by default</div>
</body>
</html>
/* Put your css in here */