Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
At the weekend I was having a play around trying to make an AngularJS front end for Wordpress using their API.
I was following a tutorial, and noticed when retrieving post titles they were using .success, which had been deprecated, so switched this to .then. Still not working, and my google GOP was being weak, so I popped over to Stack Overflow.
Turns out that when I changed .success to .then I should have also changed
$scope.post = res;
To
$scope.post = res.data;
Why is always the little things that get missed?
undefined