Hello.
I have an issue with images in Ionic 3. They are not showing properly in webapp, android and iOS.
After reading a lot about this, I’ve put all of this images into assets
folder, in imgs subfolder. When showing pictures from .html
files I’ve linked them as assets/imgs/logo.png
, and from the .ts
files as ../assets/imgs/logo.png
.
Now, this worked for pictures in webapp and Android, but not for iOS (alt was showing there), but pictures linked in .ts
files are not showing at all.
So, can anyone help me to solved this once and for all?
My questions are:
- Where should I keep images?
- How should I link images in
.html
and how in.ts
files? - How should I link images for different platforms, and what is universal linking way to make it work in webapp, Android and iOS?