标签:ret click you func link com class return remove
‘use strict‘ .config(function config($provide) { $provide.decorator(‘ndTrackClickDirective‘, function diective($delegate) { /**@ngInject */ $delegate[0].compile = function() { // create a new link function return function(scope, el, attr) { /* Your code here*/ }; }; // remove the old link function delete $delegate[0].link; return $delegate; }); });
[AngularJS] Decorator a directive
标签:ret click you func link com class return remove
原文地址:https://www.cnblogs.com/Answer1215/p/12219312.html