While working on a project, I encountered an issue that seems to be more about style than anything else. The endpoint I am calling is returning an SVG image instead of the expected jpeg or png format, and I need to display it on the page. To address this, I created a service that fetches the SVG and called this service from a method in the component named getImage(id).
In the HTML file, I have implemented the following code snippet:
<div [innerHtml]="getImage(id)></div>
One concern that has arisen is the inability to inspect the SVG in Chrome due to constant updates. I am unsure if this poses a problem and, if so, how to resolve it. It appears that the update method is being repeatedly called without any visible changes on the page triggering the change detection process.