You Cannot Link Attribute Interpolation Multiple Times In AngularJS

added by JavaScript Kicks
10/23/2014 2:20:23 PM

123 Views

Once you have a compiled directive, in AngularJS, you can either link it to the current scope; or, you can clone the compiled template and link each new clone to a different scope. But, what if we didn't want to clone the template? What if we just wanted to move it around in the DOM (Document Object Model)? Could we simply re-link it to different scopes? From what I see, the answer depends on the content of the template. It appears that attribute interpolation does not play nicely with re-linking.


0 comments