0

I can't find any documentation on .success() and .error() methods on the Angular official API docs. Not under $q or $http

Have they been deprecated ? Where can I find some documentation ?

Mini Bhati
  • 343
  • 5
  • 20
Lev
  • 13,856
  • 14
  • 52
  • 84
  • 2
    You should look harder: https://docs.angularjs.org/api/ng/service/$http#deprecation-notice They have been deprecated with [v1.4](https://code.angularjs.org/1.4.6/docs/api/ng/service/$http), only until 1.3 there was a special HttpPromise type. – Bergi Oct 06 '16 at 18:08
  • 1
    Possible duplicate of [Why are angular $http success/error methods deprecated? Removed from v1.6?](http://stackoverflow.com/questions/35329384/why-are-angular-http-success-error-methods-deprecated-removed-from-v1-6) – Liam Jan 04 '17 at 10:33

1 Answers1

1

Yes, sir, they are. You can find it in angularjs $q docs.

And this question, has good explanation, why they became deprecated.

Community
  • 1
  • 1
Kanso Code
  • 7,479
  • 5
  • 34
  • 49