VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. Setting the src for html elements
Programming Blog

Atom/RSS Feed

angular/angularjs

Setting the src for html elements

angular/angularjs

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

More Info

Join my mailing list