angular-img-fallback
angular-img-fallback copied to clipboard
Loading and Fallback doesn't work properly together
Hi,
I am using the img tag as -
<img class="avatar" height="40" ng-src="{{ user.picture }}" fallback-src="images/no-profile-image.jpg" loading-src="images/img-loading.gif" />
However, when the image is not present on the server, it shows the loading image forever instead of showing the fallback image. i.e if original image resulted in 404 error, then it should fallback to fallback-src, however it just keep showing the loading src.
Any solution to this?