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.3.6/angular.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular-aria.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="app" ng-controller="MainCtrl as vm">
  <button ng-click="vm.doThing()">Do Thing</button>
</body>
</html>
 
var app = angular.module('app', ['ngAria']);
app.controller('MainCtrl', function MainCtrl() {
  var vm = this;
  vm.greeting = 'hi';
  vm.doThing = doThing;
  
  function doThing() {
    alert('Hello!');
  }
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers