Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('custom.directive').directive('mouseEnter', function () {
- return {
- restrict: 'E',
- link: function (scope, element) {
- console.log(element);// this line prints an array!
- element[0].onmouseover = function () {
- console.log('Mouse Entered!');
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement