vendredi 30 septembre 2016

How can I load and SVG from a file and style it?

Title is rather self explanatory, as shown here: http://ift.tt/1F2b47a you can style SVGs if you copy/past their contents directly into the HTML.

Is it possible for me to load an svg from disk and do this? - i.e. in the same way that you could just do <img src="/path/to/image" class="fancy-image"> and apply styles to it using .fancy-image?

(If there is an angular directive that could do this all the better)

Thanks!




Aucun commentaire:

Enregistrer un commentaire