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 Feb 22, 2018. It is now read-only.
Components doesn't work in SVG. This will become quite a problem for apps that makes heavy usage of SVG if #959 is completed and merged before this is fixed. The template is added to the dom but never rendered to the screen.
SVG doesn't support shadow dom so the example uses master to support the useShadowDom flag.
One thing that differs between AngularJS and AngularDart output is that
AngularJS replaces the custom element with the template where AngularDart
places the template inside the custom element and thus leaves a unknown
element for the SVG parser. I don't know if this is the issue or not, but it may
be worth looking into.
This have the same problem (not rendering to the screen). So my guess at the issue above
is not correct (or at least, not the only issue). Here I guess that the namespace problem
discussed on the above stackoverflow question may be to blame.
I thought I should try to fix this. I'm leaning against the namespace hypotheses.
My idea for API change were to add a namespaceUri parameter on Component decorator, however I can't find where Elements are actually created so that I can pass that parameter on.
Could anyone give me a hint or something?
Components doesn't work in SVG. This will become quite a problem for apps that makes heavy usage of SVG if #959 is completed and merged before this is fixed. The template is added to the dom but never rendered to the screen.
SVG doesn't support shadow dom so the example uses master to support the useShadowDom flag.
Example:
Resulting dom:
This does work in AngularJS. Similar example (not mine): http://plnkr.co/edit/ORXN3I?p=preview
One thing that differs between AngularJS and AngularDart output is that
AngularJS replaces the custom element with the template where AngularDart
places the template inside the custom element and thus leaves a unknown
element for the SVG parser. I don't know if this is the issue or not, but it may
be worth looking into.
Here is a Stackoverflow question discussing the problem that previously were
in AngularJS with regards of custom elements and SVG
https://stackoverflow.com/questions/13641105/including-svg-template-in-angularjs-directive
The text was updated successfully, but these errors were encountered: