I'm learning how to properly use promises and found that $http can be used two ways.
The one way, which seems to be working better for me, is by using $http.get().then(success function, error function). The other way is $http.get().success(function).error(function). Which is the 'better' way that will work more consistently with the promise pattern? I've noticed that the argument passed to ,then(function()) is not quite the same as that for .success(function()) and .error(function()) Has there been any discussion about the pros / cons? -- 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.
