Closed littlemtravis closed 9 years ago
Your multi-transcluded blocks are linked in the context in which they are defined, not in context into which they are "injected". So you should use hrefPath
because that's in scope. This is similar to #8 but I think it's quite reasonable that this might be expected to work, since you can see version-href
right there. I'll have a look, thanks!
Let me know if this works for you!
Take a look at this http://plnkr.co/edit/50JMsM?p=preview, don't know why I didn't write a plunk to begin with.
I've updated it to reflect the change I suggested above:
http://plnkr.co/edit/lv7AHh?p=preview
Hope that helps.
Got it, makes sense. Thanks for the help.
I have setup my template, nav-template, like below.
Works: the nav-version directive finds the hrefPath on the scope
Doesn't Work: the nav-version directive doesn't find the hrefPath on the scope. The scope gets moved into the $$childHead.