Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  
  <script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div ng-app="myApp" ng-controller="modelExposer">
 <div>You've clicked <span my-text="clickCount"></span> time<span my-show="plural()">s</span></div>
 <button my-click="clickCount = clickCount + 1" 
     my-disabled="overClicked()">Click me</button>
 <div my-show="overClicked()">
  That's too many clicks! Please stop before you wear out your fingers.
  <button my-click="clickCount = 0">Reset clicks</button>
 </div>
</div>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
fredyangpro
0viewers