Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  
   <div id="1">
     <div ng-controller="c1">
       <button ng-click="updateData('asdf')">add</button>
       {{data}}
     </div>
   </div>
  
   <hr>
  
   <div id="2">
     <div ng-controller="c2">
       <button ng-click="updateData('qwer')">add</button>
       {{data}}
     </div>     
   </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers