Hi I perform An API call on a WordPress site using wprest v2 API , I can see solo 10post despite there is 11
.controller(âMycontrollerCtrlâ,function($scope, $http,$sce,$timeout,$ionicLoading,$rootScope,
var wordpressUrl =âhttp://www.mysite.it/sites/wordpress/wp-json/wp/v2/postsâ;
$ionicLoading.show({
content: 'Loading',
animation: 'fade-in',
showBackdrop: true,
maxWidth: 200,
showDelay: 0
})
// effetuo la chimamata REST API
$http.get(wordpressUrl)
// risposta positiva
.success(function(response,$timeout){
console.log("Reveived getPosts via HTTP: ", response, status);
// Loading Json
$ionicLoading.hide();
$scope.posts = response;
$scope.$broadcast('scroll.infiniteScrollComplete');
console.log( response );
})// fine success
//risposta negativa
.error(function(response, status){
console.log("Error while received response. " + status + response);
});// fine error
})// Fine Controller