
angular/angularjs
January 21, 2019
Setting the src for html elements
Setting the src attribute for elements is different if you need to reference a AngularJS variable.
What you cannot do
You cannot use <img src="{{path}}">
What you can do
Instead you need to use <img ng-src="{{path}}" />
Thanks for reading!