Hi Robert, a couple of things. If you use a template directive to replace an existing node, the containing nodes will get removed. so you svg-file directive simply replaces the content. the directives inside will never gets displayed.
svg, can only contain valid svg, if there is a content that is not valid svg, it will not get rendered. svg-rect, and svg-circle are NOT valid svg. In this case you need to use the replace. However, be aware that replace is deprecated. I don't have the time now to look for a more permanent solution. Here you can see: http://plnkr.co/edit/Dw6ac3VHd6otexJe8xBx?p=preview Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
