I'm in the processs of creating an angular library that contains two static images (.svgs, but I have tried with .png) The issue is that I'm getting 404 not found on the images, and I have tried almost everything to make it work. Here's the folder structure:
Here's a similar problem without answer: How to add svg images in angular library?
Any ideas?
尝试像这样编写 src 路径: ../../assets/icons/toggleOn.svg
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.