Angular 1.2: ngShow
http://angularjs.org/
by perqa
HTML
<script src="http://code.angularjs.org/1.2.0-rc.3/angular.min.js"></script>
<script src="http://code.angularjs.org/1.2.0-rc.3/angular.min.js.map"></script>
<script src="http://code.angularjs.org/1.2.0-rc.3/angular-animate.min.js"></script>
<script src="http://code.angularjs.org/1.2.0-rc.3/angular-animate.min.js.map"></script>
<div ng-init="on=false">
<button ng-click="on=!on">Toggle On/Off</button>
ng-show={{on}}
<div ng-show="on">
This content should enter and leave, right?
</div>
</div>
JavaScript
var myApp = angular.module('myApp',['ngAnimate']);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
function MyCtrl($scope) {
$scope.name = 'right';
}