stopEvent.js 307 Bytes
export default angular.module('fr.stopEvent', []).directive('stopEvent', function () {
    return {
        restrict: 'A',
        link: function (scope, element, attr) {
            element.bind(attr.stopEvent, function (e) {
                e.stopPropagation();
            });
        },
    };
}).name;