Skip to content

Instantly share code, notes, and snippets.

@magician11
Created June 8, 2015 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magician11/35569312c39181ebcea2 to your computer and use it in GitHub Desktop.
Save magician11/35569312c39181ebcea2 to your computer and use it in GitHub Desktop.
Using the WordPressFeedFactory
(function() {
"use strict";
var agApp = angular.module('agApp');
agApp.controller('MainCtrl', function(WordPressFeed) {
var vm = this;
/* Get the latest articles from Go For Self */
/* ---------------------------------------- */
WordPressFeed.getLatestPosts('http://www.goforself.me', 3, function(data) {
vm.wpFeed = data;
});
});
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment