angularjs - How to override image source within a directive -
I want to override an image source within an instruction. I have tried the following, none of which works. App.directive ('imgTransform', function () {return (copy: 'a', link: function (radius, attrs) (elem.attr ('ng-src', ' ('Src', 'foo'); attrs.src = 'foo';}};}); Do the link function execute before being bogged? I also tried to create a separate scope and to force the Then set < Div class = "post-text" itemprop = "text" Before you do your own To get the banking function it needs to be modified. I recommend the controller function, because the $ compiler was opposed to digging in depth. Here's a bella: Besides, $ your link function is good luck :) ngSrc attribute:
Scope: {src: '@ngSrc'},
scope.ngSrc to the link function.
Restrict: "A", Controller: Function ($ Range, $ element, $ etter) {$ attrs. $ Set ('NGSRC', 'some other volume');}, link: function (scope, L, etters ) {...}
Comments
Post a Comment