3

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?

Comments
Add Comment