Created
March 19, 2015 12:33
-
-
Save varmais/7cad679156be17ae61a4 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
var jooh = ['image', 'images', 'slideshows', 'sectionFrontImages']; | |
angular.forEach(jooh, function (jo) { | |
if (articleData.hasOwnProperty(jo)) { | |
angular.forEach(articleData[jo], function (image, index) { | |
if(image.crops){ | |
if(image.crops.mediumThreeByTwo440 && image.id) { | |
$scope.imageHolder[image.id] = image.crops.mediumThreeByTwo440.url; | |
} | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment