I am currently working on an Angular 7 application and I need to dynamically update the text value based on a dropdown selection.
For example, if the id of the text element is 10, then I want to change the text from 'hi' to 'hello'.
The issue I am facing is that when using setProperty innerHTML to update the text value, it works perfectly fine in Chrome. However, when attempting the same action in Internet Explorer (IE), the text value does not get updated.
<text id='10'>hi</text>
svgElement: SVGElement;
pathElement: HTMLElement;
constructor(private renderer: Renderer2) { }
this.pathElement = svgElement.querySelector(`[id='10']`);
this.renderer.setProperty(this.pathElement, 'innerHTML', 'hello');