Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. angular.module('custom.directive').directive('mouseEnter', function () {
  2. return {
  3. restrict: 'E',
  4. link: function (scope, element) {
  5. console.log(element);// this line prints an array!
  6. element[0].onmouseover = function () {
  7. console.log('Mouse Entered!');
  8. };
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement