Package Exports
- angular-fallback-image
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-fallback-image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
angular-fallback-image
Angular directive that shows a fallback image when an image returns 404
How to use it
You must include the angular-fallback-image dependency on your angular module:
var app = angular.module("exampleApp", ["angular-fallback-image"]);
Then on your html you simply use it like this:
<img ng-src="nonExistentImage.png" sr-fallback="fallback.png" />
Angular expressions can also be added to the sr-fallback attribute.