Answer the question
In order to leave comments, you need to log in
How to embed svg using Renderer2?
How to embed an svg component into the template using Renderer2 in Angular?
The problem is that the svg embedded in this way is not displayed in the browser, and is not visible at all in the styles inspector: here is a demo https://stackblitz.com/edit/angular-ccmzfx
At the same time, the same svg inserted in the template hands, displayed without problems. This can be seen in the same example.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question