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.
Baca Juga
- Angularjs Filtering Data Based On Option Selection And Tag Creation Based On Selection
- In My Service-factory I Lookup Up A Large Dataset - I Want To Persist It And Check For Its Existence To Avoid Calling It Again
- Pass A Input Field Value Into Angularjs $resource Undefined And Error Shows Unknown Scope Provider
Post a Comment for "How To Show Images In Img Tag Inside An Ng-repeat While Using Angular Js?"