Hi Neil,
First of all, you should drop the entirely unneeded defer.
This will do exactly the same:
var _createAddress = function (address) {
return $http.post(serviceBase + 'api/Addresses/Address',address)
.then(function (response) {return response.data}); // strip out the
data from the response, wich is the only difference between .success and
.then
};
Do I read it correctly that you are debugging your server? If this is the
case, setting the breakpoint might be the cause of the err:null.
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.