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 has been archived by the owner on Apr 12, 2024. It is now read-only.
See http://jsfiddle.net/c7UvM/10/. I have two directives, <outer> and <inner>, each of which uses isolate scopes and ng-transclude. The template for <outer> contains <inner><div ng-transclude></div></inner>. This nested use of ng-transclude causes the scope to be wired up wrongly.
What's my use case? Currently, my <inner> directive is responsible for creating a stylized link, and my <outer> directive uses that stylized link to show a specific piece of text. These are completely separate responsibilities, so I'd like to keep them separate.
The text was updated successfully, but these errors were encountered:
I think I have a similar issue...
Here is the fiddle http://jsfiddle.net/a47Rz/2/
You can see that if you remove the ng-if, it's working fine. The error seems to occur on the $transclude of the ngIfDirective...
I tried to make a similar example work with the angularjs 1.3.0-beta.10 (which should include the fix #7387) but it seems that the issue is still there.
Here is the example: http://plnkr.co/edit/0hFFHknDps2krtK1D9ud?p=preview
See http://jsfiddle.net/c7UvM/10/. I have two directives,
<outer>
and<inner>
, each of which uses isolate scopes and ng-transclude. The template for<outer>
contains<inner><div ng-transclude></div></inner>
. This nested use of ng-transclude causes the scope to be wired up wrongly.What's my use case? Currently, my
<inner>
directive is responsible for creating a stylized link, and my<outer>
directive uses that stylized link to show a specific piece of text. These are completely separate responsibilities, so I'd like to keep them separate.The text was updated successfully, but these errors were encountered: