Skip to content

Instantly share code, notes, and snippets.

@santthosh
Created September 4, 2013 21:04
Show Gist options
  • Save santthosh/6442867 to your computer and use it in GitHub Desktop.
Save santthosh/6442867 to your computer and use it in GitHub Desktop.
var myApp = angular.module('behaviorApp',[],null);
myApp.directive("enter",function(){
return function(scope,element){
element.bind("mouseenter",function(){
console.log("I'm inside of the panel!");
})
}
})
myApp.directive("leave",function(){
return function(scope,element){
element.bind("mouseleave",function(){
console.log("I'm leaving on a jet plane");
})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment