DEV Community

Discussion on: Angular: Using custom made SVG icons through Angular Material

Collapse
 
vankadn profile image
Krishna

Hello Stefanos, nice article

I am having trouble to use custom icons, when I follow step you provided, it is making a request like this: localhost:4201/icon/repair.svg
and giving 404 response

Collapse
 
elasticrash profile image
Stefanos Kouroupis

well first of all the icons by default are supposed to be located under assets, except if you have a custom configuration under angular.json, which defines your assets under a different folder.

the assets (icons in this place need to be referenced from the place they are being accessed)