Angularjs Examples

AJS Examples


AngularJS ng-MouseEnter Directive

The AngularJS ng-mouseenter directive is used to attach specific functionality on mouse enter event.

Syntax

<button ng-mouseenter="callFunction()"> 

AngularJS ng-MouseEnter Directive Example

<html>
<head>
<script type="text/javascript">
//Defining Controller Using Standard Javascrip Object Constructor
var app = angular.module('myApp', []);
app.controller('homeCtrl', function ($scope) {
    $scope.alert = function () {
        alert('Mouse Enter Event Demo');
    };

})
</script>
</head>
<body>
<div ng-app="myApp" ng-controller="homeCtrl">
    <div ng-mouseenter="alert();" style="background:#3dd33d;">
        Tech Strikers
    </div>
</div>

</body>
</html>
See Live Example