AngularJS directive that generate accurate SVG with alternative text instead image with corrupt ng-src
attribute.
Install with bower:
bower install --save ng-alt
Add as a dependency in your Angular app:
var app = angular.module('app', ['ngAlt']);
Use directive:
<img ng-src="{{unreliableSrc}}" ng-alt="Sorry, image not found">