Quantcast
Channel: Using a directive inside an ng-repeat, and a mysterious power of scope '@' - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Michelle Tilley for Using a directive inside an ng-repeat, and a...

In drinkLonghand, you use the codescope.flavor = attrs.flavor;During the linking phase, interpolated attributes haven't yet been evaluated, so their values are undefined. (They work outside of the...

View Article



Using a directive inside an ng-repeat, and a mysterious power of scope '@'

If you prefer to see the question in working code, start here: http://jsbin.com/ayigub/2/editConsider this almost equivalent ways to write a simple direcive:app.directive("drinkShortcut", function() {...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images