Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular, image not found (GET 404)

Tags:

html

angular

I'm at the moment trying to embed an image to my angular project but I'm getting an error that the immage can not be found.

GET http://localhost:4200/logo.svg 404 (Not Found)

I have tried to embed the image with the standard method just like this

<img src="../logo.svg">

I have checked the source and also tried other file formats.

like image 426
Leonzen Avatar asked May 16 '17 07:05

Leonzen


Video Answer


1 Answers

@Parth Ghiya commented the answer to my question. I had to put the image to the /src/assets folder. Angular is now able to find the image.

like image 144
Leonzen Avatar answered Sep 29 '22 16:09

Leonzen