user8885733
user8885733

Reputation: 147

Image not reloading in my html

I am building an angular app and in one of the components i am trying to load an image, but it is throwing a 404 not found. I guess I am not giving my path correctly. Could someone please help me with it ? my screenshot for the component structure and html code with it Structure

My html page with the error:

html page

Upvotes: 0

Views: 57

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222722

copy your images into assets folder. Angular can only statics files like images from assets folder and then

<img src="assets\img\elliot.jpg">

Upvotes: 2

Related Questions