We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to change the text of some svg at runtime. I can't seem to access the svg inside the container because it is private.
<svg xmlns="http://www.w3.org/2000/svg"> ... <text id="beginner" fill="#212121">text to change</text> ... </svg>
document.getElementById("beginner").textContent = "My Value";
The text was updated successfully, but these errors were encountered:
Rather than using this angular-svg-icon, the svg as an Angular template may be a better approach for what you're trying to achieve.
Generally modern Angular apps don't mix the type of direct manipulation of the DOM like you're doing. It might be possible to do this via Renderer2.
Sorry, something went wrong.
No branches or pull requests
I need to change the text of some svg at runtime.
I can't seem to access the svg inside the container because it is private.
<svg xmlns="http://www.w3.org/2000/svg"> ... <text id="beginner" fill="#212121">text to change</text> ... </svg>
document.getElementById("beginner").textContent = "My Value";
The text was updated successfully, but these errors were encountered: