How to add svg images in angular library?

Viewed 1014

I have created an angular library in which I have .svg images, I have added my images in src/assets/images folder but I try to get image its throwing http://localhost:4200/assets/images/arrow-left.svg 404 (Not Found). html

<img src="assets/images/arrow-left.svg" />

Below is my folder structure for angular library

enter image description here

1 Answers

You should provide a proper image path in your html.

I think your image path will be ./../assets/images/arrow-left.svg. Try this out.

Related