Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Transclusion does not work with templateUrl #906

Closed
bdunklau opened this issue Apr 25, 2012 · 3 comments
Closed

Transclusion does not work with templateUrl #906

bdunklau opened this issue Apr 25, 2012 · 3 comments
Assignees

Comments

@bdunklau
Copy link

http://jsfiddle.net/MTrcR/5/

Anything you type in the "body" text area is not displayed by the dialog. The Save and Close buttons don't work (from the code in the fiddle, it looks like they should). The X in the upper right of the dialog doesn't work either.

This ticket originated from this thread: http://groups.google.com/group/angular/browse_thread/thread/f206c26903102569/ba914c3605ab020a?lnk=gst&q=MTrcR#ba914c3605ab020a which provided an example of twitter bootstrap modals, but using angular 0.10.7

@ghost ghost assigned IgorMinar May 3, 2012
@IgorMinar
Copy link
Contributor

This is not related to using or not using templateUrl.

The real problem is that if a parent directive does transclusion, then child directive's transclusion will be broken.

Compare these two examples (note that they use template rather than templateUrl):
http://jsfiddle.net/IgorMinar/MTrcR/8/
http://jsfiddle.net/IgorMinar/MTrcR/9/

the difference between the two example is that one uses ngSwitch which internally is implemented with transclusion.

@bdunklau
Copy link
Author

bdunklau commented May 4, 2012

Thanks for the update.

Angular is very cool.

@IgorMinar
Copy link
Contributor

I believe that this is fixed now in 1.2.3. if you still see the issue please reopen this issue and add an updated plunker/fiddle app that demonstrates the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants