Created
June 23, 2016 12:50
-
-
Save kirillshevch/1c69b998aa5584f6a20f65b72bfd6476 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
directive = -> | |
restrict: 'A' | |
link: ($scope, $elem, $attrs) -> | |
$elem.mouseover( -> | |
console.log('test') | |
).mouseout( -> | |
console.log('test') | |
) | |
angular | |
.module('modulename') | |
.directive('contentHider', [directive]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment