JSFiddle - React, Tailwind, and code Playground
by Daniel Lamb
HTML
<div ng-app="myApp">
<form ng-controller="Example">
<button ng-mouseup="update($event)">
Increment (on mouse up)
</button>
mouse up count: {{count}}
</form>
</div>
JavaScript
angular.module('myApp', [])
.controller('Example', ['$scope', function ($scope) {
$scope.count = 0;
$scope.update = function (e) {
$scope.count++;
console.log(e.which);
};
}]);