This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
nested ng-transcludes with isolate scopes broken #6435
Closed
Description
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.