Hi,
The errors you are seeing are not from your code, but about some other
stuff going wrong.
I’m sorry, but I had a small mistake in my previous answer. with the then
method you retrieve the entire response:
it should have been:
userFactory.getUsers().then(function (response) {
$scope.users = response.data;
});
or:
userFactory.getUsers().success(function (data) {
$scope.users = data;
});
witch shows the difference between the both menthods.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.