Accessing files stored outside src folder Angular 6

(Komkumar) #1


I am trying to access an image stored in node modules folder in app.component.html using the “src” attribute of “img” tag. The path of the image is given as value of “src” attribute. Accessing the image this way throws an error - “Unable to find resource”, because by default, compiler looks for images in “src” folder.

I face the same issue while accessing style sheets located in node modules folder.

I am using angular 6.

Is there any file that i need to edit to change this default behaviour?

(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.