How to display a WordPress feed in an AngularJS app


I have a landing page where I wanted to show my latest articles from a WordPress blog I have.

It turns out it’s not that hard to do.

First I created a factory to get my WordPress feeds

https://gist.github.com/magician11/829370d6c02662b159bf

Then use this factory from some controller

https://gist.github.com/magician11/35569312c39181ebcea2

Then use this data in a view like this

https://gist.github.com/magician11/7cecd8bbf401a934bf35

And that’s it! Pretty simple 🙂

Working demo at the bottom of this page.


One response to “How to display a WordPress feed in an AngularJS app”

Leave a Reply

Your email address will not be published.