I managed to bind events, but soon I found that some events do not work with angular.element.bind() . For example, in the case of a click event, I had to use the syntax Event.add() .
Here's what it looks like:
angular.module('myApp', []).config(function(){ Event.modifyEventListener = true; Event.modifySelectors = true; }).controller('SomeCtrl', function($scope){ $scope.eventType = ""; }).directive('foo', function($log){ return { link: function(scope, elm, attr){
Here you can see the demo: http://plnkr.co/edit/FLMckw?p=preview
source share