see this script, here I created a custom directive that binds an event to an element,
angular.module('HelloApp', []) .directive('customDir', function () { return { restrict: 'A', link: function(scope, element, attrs) { element.bind("click",function() { alert("you clicked me"); }) } } })
In your case, you can just bind your specific event to an element
source share