Hi Neil,

My solution is a drop in replacement of what you have. The results will be 
exactly 100% the same. $http returns a normal promise. using the .success 
and .error callbacks is even deprecated. 
Wrapping a promise inside a promise is considered an anti-pattern, have a 
read over this page <http://taoofcode.net/promise-anti-patterns/>. here 
it's called the forgotten promise. 

If you still have questions, don't hesitate to ask.
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.

Reply via email to