Hi Joel,

I answered your question on git 
<https://github.com/angular/angular/issues/17285#issuecomment-308095798>
 also.

I don't think this is possible. The problem is that the SVG-tree is XML, 
and it doesn't support unknown elements. that means if you put the ngOutlet in 
there, the SVG tree will not render anymore.
If you put the XHTML modifier on the node, it will wrap that node inside a 
foreignObject. that means that whatever the router puts in there, will be 
in the HTML subspace, not in the SVG render tree.

The only solution that comes to mind, is to create your own router, using 
an SVG native element.
I really hope that I'm wrong here because the idea is intriguing, and if it 
works, it would enable some nice tricks. Charting pops to mind, but some 
generative art and other fun exercises become possible also!


For some more deeper information, by friend Tero wrote a nice article on 
SVG in angular 
<https://teropa.info/blog/2016/12/12/graphics-in-angular-2.html>


Regards

Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to