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 was archived by the owner on Apr 12, 2024. It is now read-only.
I tried to include a template for a SVG group, which contains a defs element of several pattern, but both image and circle elements disappeared in the final SVG as inspected with Chrome. However circle elements can be properly compiled if image elements are commented out.
Is this a bug? Or did I miss something that I should be aware of when using angular on SVG? Any hint is appreciated, thanks.
The text was updated successfully, but these errors were encountered:
I assume there's a problem with the browser where it tries to parse the template content outside of the svg container. So the context isn't right and the image element gets garbled. What you can try is to either put the <svg> into the template or use a directive template, which works for some reason: http://plnkr.co/edit/GegJt1SSz4UcGgFRjiSk?p=preview
Demo: http://plnkr.co/edit/SpX3Kf74NBgBvVJTFYQF
I tried to include a template for a SVG group, which contains a
defs
element of severalpattern
, but bothimage
andcircle
elements disappeared in the final SVG as inspected with Chrome. Howevercircle
elements can be properly compiled ifimage
elements are commented out.Is this a bug? Or did I miss something that I should be aware of when using angular on SVG? Any hint is appreciated, thanks.
The text was updated successfully, but these errors were encountered: