I'm working with HTML SVGs on a SPA.
I've run into an issue with not being able to render SVG elements within the directive template. I believe this is because my directive is a foreign element inside the SVG namespace.
I need a work around to use the functionality of my directive with SVG elements. Either by making an Element-Restricted-Directive legitimate inside SVG tags or dynamically adding my directive as an Attribute-Restricted-Directive, to a SVG element.
I am currently running Angularjs 1 and I am using SVG elements (i.e. rect, ellipse, g) within my Directive Templates.
I found a stack-overflow post that talks about copying and deleting the Directive DOM node and recreating it as an SVG node. I'm not certain if the controller will still be bound to the new node though.
Link: Rendering SVG templates in AngularJS directives
Do you have a suggestion to overcome this?