@mcnamara wrote:
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
Posts: 1
Participants: 1