In this example of Ng-Src
, We have an array of "pics" which contain Url and name and we are looping thro' the array using ng-repeat
. Scope variable : $scope.pics
= [{ url: "http://learnit.visrosoftware.com/datafiles/imglist-2.jpg", Name: "John Mark" }, { url: "http://learnit.visrosoftware.com/datafiles/imglist-2.png", Name: "Stephen Gill" }]; And html code like: