Get latest 10 posts from wordpress blog using Spring MVC or AngularJS

Solution:

I’ve managed to find a solution, based on the code you can see in this fiddle: http://jsfiddle.net/mahbub/b8Wcz/

Basically, I define a method like the following one in my AngularJS service, and I then invoke it in my AngularJS controller:

AngularJS

angular.module('blog-module').factory('blogService', function($http) {

return {
    parseFeed : function(){
        return $http.jsonp('//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=50&callback=JSON_CALLBACK&q=' + encodeURIComponent('https://thisismyblog.wordpress.com/feed/'));
    }
}

});

In your controller, you’ll then have something like this:

blogService.parseFeed().then(function (feeds) {
        $scope.feeds = feeds.data.responseData.feed.entries;
});

This solved my problem.