Whenever i'm trying to load image in my ionic project


#1

Whenever i’m trying to load image in my ionic 2 project it always shows this error
`Failed to load resource: the server responded with a status of 404 (Not Found)

`

code is
<img src="../../assets/img/coc.png"/>


#2

Seems the path to the images is wrong. Try leaving the “…/” out.


#3

You only need to set the src image like this:

<img src="assets/img/coc.png">

#4

Using code like this
<img src="assets/img/coc.png">
also gives the same error
Failed to load resource: the server responded with a status of 404 (Not Found)


#5

Then where are your assets in /src and /www?


#6

assests are in /src