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="myApp" ng-controller="myController">
  <label>{{ type }}<label>
  <br /><br />
  <button ng-click="myOnClick()">Click Me</button>
  <br />
  <label ng-mousemove="myOnMouseMove()">Hover Me</label>
  <br /> 
  <label ng-mouseover="myOnMouseOver()">Hover Me</label>
  <br />
  <label ng-mouseenter="myOnMouseEnter()"
         ng-mouseover="myOnMouseOver()"
         ng-mouseleave="myOnMouseLeave()">Hover Me</label>
</body>
</html>
 
var app = angular.module("myApp",[]);
app.controller("myController", function($scope) {
  $scope.type = "Control";
  $scope.myOnClick = function() {
    $scope.type = "Click"; 
  };
  $scope.myOnMouseMove = function() {
    $scope.type = "MouseMove"; 
  };
  $scope.myOnMouseEnter = function() {
    $scope.type = "MouseEnter"; 
  };
  $scope.myOnMouseOver = function() {
    $scope.type = "MouseOver"; 
  };
  $scope.myOnMouseLeave = function() {
    $scope.type = "MouseLeave"; 
  };
});
Output

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

Dismiss x
public
Bin info
charley85470pro
0viewers