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"/>
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"/>
Seems the path to the images is wrong. Try leaving the “…/” out.
You only need to set the src image like this:
<img src="assets/img/coc.png">
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)
Then where are your assets in /src
and /www
?