I'm trying to do an ng-repeat in AngularJS that pulls from the uiFaces API. This is my code at the moment. This http.get is wrapped inside my .controller:
$http.get('http://uifaces.com/api/v1/random').success(function(data){
$scope.uifaces = data;
});
And I'm trying to repeat a list of faces with ng-repeat:
<ul>
<li ng-repeat="face in uifaces">
<h6>{{ face.username }}</h6>
<img ng-src="{{ face.image_urls.normal }}">
</li>
</ul>
But I just keep getting two blank list items. I'm very new to Angular and APIs so trying to wrap my head around why nothing is being returned. Can anyone tell me what I'm doing wrong?
Any help is appreciated. Thanks in advance!
databefore set it to an scope? Are 100% sure that you are receiving a response?