Hide/show image on small screen
问题 I am using Angular material-2 for my frontend, I want to display different images for desktop and mobile screens I have this code shown below <div class="banner"> <img [src]="images.desktopBanner"/> <img [src]="images.mobileBanner"/> </div> I want to display desktopBanner image in large devices and mobileBanner in small screens. NOTE: marking display:none using media query is not the best solution as this might not display both the images together but if you check the network call it will