Add a full svg code to the component and check that it works on localhost:4200 or the port you are using. Click to copy the code. Well, now we have a problem, if we keep coding like this, our ts files ...
<span class="hljs-tag">&lt;<span class="hljs-name">pattern</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;pattern1&quot;</span> <span class ...