You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
So the reason that ng-show makes a difference is that it adds a directive between the top level "compile" node and the ng-if. You can see that any directive that gets in the way will cause this problem...
I think this is actually some kind of bug, since clearly the outer transclude is sort of available it is just not passed through when the compiler hits a directive that also creates a transclude. I feel that somehow we ought to have a stack of transclusion functions that directives can un-peel as we go down through the compilation....
Activity
rodyhaddad commentedon Apr 25, 2014
Check this comment for a workaround.
Here's your jsbin with the workaround: http://jsbin.com/pemadama/2/edit
hmm, I find it odd that
ng-showplays a role in thisWizek commentedon Apr 25, 2014
Thanks @rodyhaddad, that was helpful.
I too have no idea why
ng-showmakes any difference.Do you think it makes sense to attach a failing unit-test-case to this issue as a pull request?
petebacondarwin commentedon Apr 28, 2014
So the reason that ng-show makes a difference is that it adds a directive between the top level "compile" node and the ng-if. You can see that any directive that gets in the way will cause this problem...
See http://jsbin.com/pemadama/6/edit
I think this is actually some kind of bug, since clearly the outer transclude is sort of available it is just not passed through when the compiler hits a directive that also creates a transclude. I feel that somehow we ought to have a stack of transclusion functions that directives can un-peel as we go down through the compilation....
test($compile): nested transcludes not passing down tree
test($compile): top level nested transcludes are passing down tree
test($compile): top level nested transcludes are passing down tree
13 remaining items
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
rodyhaddad commentedon May 21, 2014
This should be re-opened as 4f03dc5 was reverted by e994259.
Here's the original jsbin with the latest snapshot: http://jsbin.com/pemadama/12/edit
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives
fix($compile): pass transcludeFn down to nested transclude directives