angular - Angular2/4 Dynamic SVG from File -


i want load svg file server , dynamically alter attributes. e.g. on rect do.

[attr.fill]="getcolor()" 

instead of fill="#00ff00"

i have tried using method described @ angular 2, domsanitizer, bypasssecuritytrusthtml, svg

see plunker @ https://plnkr.co/edit/dcjeomwsxqoyg181iuus?p=preview

i have tried using ng-inline-svg.

both methods not allow me change color once svg loaded , inlined

is there way work?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -