Skip to content Skip to sidebar Skip to footer

How To Show Images In Img Tag Inside An Ng-repeat While Using Angular Js?

My problem: I want to display a list of images, stored localy, using ng-repeat directive, but the images re not being displayed. AngularJS version: 1.2.22 The code: Directory Stru

Solution 1:

For IMG tags and AngularJS, use just the ng-src attribute.

<imgng-src="{{media.imagePath}}" />

{{media.imagePath}} must contain the URL to the image, absolute or relative.

Post a Comment for "How To Show Images In Img Tag Inside An Ng-repeat While Using Angular Js?"