This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* First is the Angular Directive method of solving. | |
* Second is the inline onerror fix that results in a default image. | |
* SOURCE: http://stackoverflow.com/questions/27549134/angularjs-ng-src-condition-if-not-found-via-url | |
*/ | |
var myApp = angular.module('myApp',[]); | |
myApp.directive('onErrorSrc', function() { | |
return { |