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 ArticleUsing 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
More Pages to Explore .....