Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body data-ng-app="app">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <div data-ng-controller="TestController">
    
    {{ test }}<br>
    
    <i class="fa fa-ellipsis-h" data-ng-click="doAction('OpenMenu', $event)">Menu</i>
    
  </div>
  
</body>
</html>
 
angular.module('app', [])
.controller('TestController', ['$scope', function ($scope) {
  
  $scope.test = 'testing!';
  
  $scope.doAction = function (action) {
    console.log('clicked');
    $scope.test = action;
  };
 
}]);
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers