You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I have this code in version 1.2.1 but in version 1.3.8 I noticede it was not working any more here is a link to it working in 1.2.1 but locally I tested it with 1.3.8 and it no longer works. Also here is a link to the fiddle http://jsfiddle.net/377vhfm4/6/. Just wanted to know the new approach to this if there is one. Thanks.
app.config(function($provide){$provide.decorator("exampleDirective",function($delegate){vardirective=$delegate[0];varlink=directive.link;//we add a new property to the scopeangular.extend(directive.scope,{things: "="});directive.compile=function(){returnfunction(scope,lElement){console.log(scope.things);//undefined//we call the original link functionlink.apply(this,arguments);//it is undefined so we cannot add it to the page lElement.append('<span>'+scope.things+'</span>');}};return$delegate;})})
The text was updated successfully, but these errors were encountered:
I have this code in version 1.2.1 but in version 1.3.8 I noticede it was not working any more here is a link to it working in 1.2.1 but locally I tested it with 1.3.8 and it no longer works. Also here is a link to the fiddle http://jsfiddle.net/377vhfm4/6/. Just wanted to know the new approach to this if there is one. Thanks.
The text was updated successfully, but these errors were encountered: