Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body ng-app='app'>
  <div ng-controller='AppController'>
    <div class="settings-heading " style="background-color: #f2f2f2;"  
  ng-show="itemDIv2" ng-init='itemDIv2=true'> 
      Demo text
 </div> 
 <br/>
 <div>
   <button  class='btn' ng-click="itemDIv2 = !itemDIv2" >
     Add items to Category 
   </button>
 </div> 
    
  </div>
</body>
</html>
 
angular
  .module('app', [])
  .controller('AppController', function ($scope) {
    //$scope.itemDIv2 = true;
  });
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
addi90pro
0viewers