Skip to content
/ ng-alt Public

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

License

Notifications You must be signed in to change notification settings

urnix/ng-alt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published