#How to embedded SVG with dynamic color?

3 messages · Page 1 of 1 (latest)

gritty coral
#

I want to display svg file from the assets but with dynamic color like the icons

final beacon
#

as far as I know, you can apply dynamic color to an svg asset, however you can apply dynamic color in svg code (ex: <svg>, not an svg image). what you can do with svg assets in form of image is you can play the filter, brightness, opacity, etc. but you can apply the fill color there.

topaz crest
#

Another way in angular is to make a component and instead of an html templateUrl you use your .svg