Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 397 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 397 Bytes

ng-alt

AngularJS directive that generate accurate SVG with alternative text instead image with corrupt ng-src attribute.

Usage

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">