<h1>Example: ngMousemove</h1>
<p>ngMousemoveはMousemoveイベントをリスナー登録します。</p>
<div ng-app="myApp">
  <div ng-controller="myController">
    <div ng-class="'box'" ng-mousemove="mousemove(1)">{{ count }}</div>
  </div>
</div>
@import "bourbon";

body {
  padding: 1.5rem;
}

.box {
  width: 200px;
  height: 100px;
  
  text-align: center;
  line-height: 6rem;
  
  background: #eee;
}
View Compiled
var app = angular.module('myApp', []);

app.controller('myController', ['$scope', function($scope){
  $scope.count = 0;
  
  $scope.mousemove = function(count){
    $scope.count = $scope.count + count;
  }
}]);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js