Ionic 2 Images not displaying on device

I had the same issue with relative paths

<img src="https://stackoverflow.com/questions/assets/img/vis_reco.png">  

does work with ionic serve / and also with livereload in the emulator (e.g. from src/pages/home/home.html ) But not on the device.

Don’t use relative paths for images !!!

<img src="https://stackoverflow.com/questions/42830752/assets/img/vis_reco.png">  

works for me with Ionic (v3) and also angular typescript apps.
On the device (ionic cordova run) with ionic serve and also with ng s (angular apps)

used dir tree:

used dir tree

you can see an (official) example in the ionic conference starter, try:

ionic start ionicConf conference

(btw: same quetiosn & answer here: https://forum.ionicframework.com/t/images-not-displayed-on-device/89145 )

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)