-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Shadow DOM Emulation: two components in a template, the second does not get content projection #1058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
@tbosch Tried this just now on current master, the issue is still present. |
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Apr 30, 2015
This is needed as the compiler changes templates during compilation and we are caching templates in the `TemplateLoader`. Closes angular#1058
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Apr 30, 2015
This is needed as the compiler changes templates during compilation and we are caching templates in the `TemplateLoader`. Closes angular#1058
tbosch
added a commit
to tbosch/angular
that referenced
this issue
Apr 30, 2015
This is needed as the compiler changes templates during compilation and we are caching templates in the `TemplateLoader`. Closes angular#1058
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have two components:
MdButton
andMdAnchor
. Their selectors are[md-button]:not([href])
and[md-button][href]
, respectively. They both use the same template:I have a demo where I render out some buttons and some anchors. It looks something like this:
Whichever component is second on the page does not receive content projection. Instead, the placeholder
<script>
tags are still there.You can see this issue locally:
Then visit
http://localhost:8000/angular2/src/material/components/button/demo/?
You can see that the anchors do not have their content projected, while the buttons do. If you remove all of the buttons and leave only the anchors, they work fine. Re-add another button after the anchors, and then that button will have the problem.
The text was updated successfully, but these errors were encountered: