I'm trying to show some images whose urls I get as a json response from a server. Using examples such as this and that was useful, but I can't seem to get it to work. I think the reason might be that the above examples parse simple json objects, while the response I'm trying to is more complex. I have tried unsuccessfully to handle that with the ng-repeater and ng-src directives, and also using this example.
This not an http problem (status is 200) or a json source problem(I have checked the response with Jsonlint and it's ok).
my script:
$http.get(path)
.then(function(res) {
console.log("$http succeeded");
$scope.thumbList = res.data;
});
my html:
<div>
<ul ng-repeat="item in thumbList.response.resultset.items" >
<li>
<img ng-src="{{item.images.0.thumb_uri}}">
</li>
</ul>
</div>