Skip to content

Instantly share code, notes, and snippets.

@kirillshevch
Created June 23, 2016 12:50
Show Gist options
  • Save kirillshevch/1c69b998aa5584f6a20f65b72bfd6476 to your computer and use it in GitHub Desktop.
Save kirillshevch/1c69b998aa5584f6a20f65b72bfd6476 to your computer and use it in GitHub Desktop.
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