Created
December 13, 2012 21:28
-
-
Save alexo/4280109 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AlbumCtrl($scope) { | |
scope.images = [ | |
{"thumbnail":"img/image_01.png", "description":"Image 01 description"}, | |
{"thumbnail":"img/image_02.png", "description":"Image 02 description"}, | |
{"thumbnail":"img/image_03.png", "description":"Image 03 description"}, | |
{"thumbnail":"img/image_04.png", "description":"Image 04 description"}, | |
{"thumbnail":"img/image_05.png", "description":"Image 05 description"} | |
]; | |
} | |
<div ng-controller="AlbumCtrl"> | |
<ul> | |
<li ng-repeat="image in images"> | |
<img ng-src="{{image.thumbnail}}" alt="{{image.description}}"> | |
</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment