JSFiddle - React, Tailwind, and code Playground
by George-Leonard Chetreanu
HTML
<div ng-app="demoApp">
<div ng-controller="myTestCtrl">
<div ng-click="clickFn()" ignore-click>some text</div>
</div>
</div>
JavaScript
demoApp = angular.module('demoApp', []);
demoApp.directive('ignoreClick', function() {
return {
restrict: 'A',
priority: 1,
terminal: true,
link: function (scope, element, attrs, controller) {
}
};
});
function myTestCtrl($scope) {
$scope.clickFn = function () {
alert(1);
};
}