When I am doing ionic serve
, it loads home.html
. I am calling image there. For some reason the images are kept at xampp/htdocs/files/hydrocarbon_files/image001.gif
In normal HTML it loads image perfectly fine but in Ionic project, image path is shown as
It does not show image from above url, because orignally the path is -
What should I do so that image loads locally as well?
ionic dont support external paths. you have to copy that image inside ionic projects's assets folder then it will work. E.G
<img src="assets/img/imageName.png" >