See ‘Deprecation Notice‘ from $http service documentation:
The $http legacy promise methods success and error have been
deprecated. Use the standard then method instead.
You can learn more about these methods in the documentation about $q.
More Related Contents:
- The Advantages when we put AngularJS within Symfony web application
- Why does AngularJS include an empty option in select?
- AngularJS access parent scope from child controller
- How to Display blob (.pdf) in an AngularJS app
- How to call a method defined in an AngularJS directive?
- How to execute AngularJS controller function on page load?
- How do I store data in local storage using Angularjs?
- Angularjs dynamic ng-pattern validation
- Is there a way to make AngularJS load partials in the beginning and not at when needed?
- Angular js init ng-model from default values
- What’s the most concise way to read query parameters in AngularJS?
- Preserve line breaks in angularjs
- Implementing loading spinner using httpInterceptor and AngularJS 1.1.5
- Getting an error when using ng-controller in angularjs ver 1.3.0 [duplicate]
- Directive isolate scope with ng-repeat scope in AngularJS
- Accessing attributes from an AngularJS directive
- Angular $location.path not working
- Angular Js – set token on header default
- AngularJs ReferenceError: $http is not defined
- RegEx for no whitespace at the beginning and end
- Can you change templateUrl on the fly?
- angularjs move focus to next control on enter
- AngularJS – Get List of All Registered Services?
- What is `priority` of ng-repeat directive can you change it?
- How to set the value attribute for select options?
- AngularJS: How to nest applications within an angular app
- Angular ng-click event delegation
- Get the current browser name in Protractor test
- How do I filter an array with AngularJS and use a property of the filtered object as the ng-model attribute?
- What is $$phase in AngularJS?