Best Practice to Load different sized images for different screen sizes - Ionic 2


#1

I would like to know which is the best way to load images of different sizes on different sized devices.

e.g. Size1.png on IPhone 5s, size2.png on IPhone6, size3.png on IPad etc.

similarly for android.

From my web development experience, I would use media query to achieve it.

What would be the best way to do so with Ionic.

Thanks !


Resolution Image Sizes
#2

Did you ever get this answered? I have the same question.


#3

I use CSS media query, but also you can use the ngIf component, and having multiple img validations.


#4

How can this done so? thankyou.