-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
ng-container
element inside an <svg> results in "Template parse errors: ':svg:ng-container' is not a known element"
#14257
Comments
+1 |
1 similar comment
+1 |
when using svg you have to take care with the svg-namespace. |
Does anyone have a workaround for this? It really makes constructing svgs with ng components difficult. Right now i wrap them in g |
@ReneCode but in this case it seems like it`s adding the svg namespace to the angular tag. Is there a way to tell the compiler that this should be an angular tag? I mean there is no ng namespace or? |
change it to:
and change the selector from the html from my-graphic-content should look like:
|
This is exactly the workaround i`m doing right now but it would be nicer to not have the extra g tag in there for the enumaration. |
ok, know I understand. |
HOW TO USE THE DIV INSIDE THE SVG |
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. |
I'm submitting a ... (check one with "x")
Current behavior
the following template:
results in compilation error:
Expected behavior
Since doesn't affect the markup and only adds the comments, the expected behavior would be successfull template compilation.
Minimal reproduction of the problem with instructions
See this plunk
What is the motivation / use case for changing the behavior?
Making the process of laying out svg components smoother and bug-free
Please tell us about your environment:
npm 4, webpack 2, VSCode, MacOS Sierra
The text was updated successfully, but these errors were encountered: