given:
$http.get('pictest.php').success(function(response) {
// this returns a promise, so you need to check the data
$scope.pictures = response.data;
});
lets say your JSON returned is something like this:
$scope.pictures= {one: "/local/myimg1.jpg", two: "/local/someOther.jpg"}; // returned from service
then you can create a view which uses this $scope data
<div ng-repeat="(key, value) in pictures"> <!-- repeat a div of pictures; key from above example would be 'one' and 'two'-->
<!-- here, ng-src uses the value from the JSON, the web address, and if it can't find that (an error), then defaults to a different address -->
<img height=100 width=200 ng-src="value" onerror="this.src = 'images/ImageNotAvailable.png';"/>
</div>
now to add pagination, you have a few options, you can use ng-show, ng-hide, ng-if and filters to limit what is shown, or using the filter from the link you provided:
app.filter('startFrom', function() {
return function(input, start) {
start = +start; //parse to int
return input.slice(start);
}
});
you can change the ng-repeat and div to the following:
<div ng-repeat="(key, value) in pictures | startFrom:currentPage*pageSize | limitTo:pageSize"">
<img height=100 width=200 ng-src="value" onerror="this.src = 'images/ImageNotAvailable.png';"/>
</div>
where $scope.currentPage and $scope.pageSize are defined in your controller as integers
Update
<div ng-repeat="picture in pictures | startFrom:currentPage*pageSize | limitTo:pageSize"">
<img height=100 width=200 ng-src="picture.name"/>
</div>