Scope problems within angular directives
I'm following the lessons on egghead.io
(http://egghead.io/lessons/angularjs-directive-to-directive-communication),
and I'm having some scope problems. When I mouse over <superhero
flash>flash</superhero>, I am getting a blank array instead of 'speed'.
However, when I add the flash directive to the second superhero directive,
it prints it correctly. I am wondering if there are any scope problems I
am having?
http://jsfiddle.net/9q6MG/
Console (on mouse over on flash)
Expected: 'speed'
Actual: []
http://jsfiddle.net/ewmCT/
No comments:
Post a Comment