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
Post a Comment