I have been trying to bind a value to the ng-src of an img HTML element to no avail.
HTML code:
We can use ng-src but when ng-src's value became null, '' or undefined, ng-src will not work. So just use ng-if for this case:
ng-src
ng-src's value
null
''
undefined
ng-if
http://jsfiddle.net/Hx7B9/299/
Change Image