has no metho...">

Http.post does not always always call a callback () in angular 1.2.1

In this angular project, I get this error

"Object #<Object> has no method 'always'"

when i run this post:

var http = $injector.get('$http');


http.post(error_url, data)
            .success(handleAPIResponse)
            .error(handleAPIResponse)
            .always(
            function () {
+4
source share
1 answer

use finally. this has been changed in version 1.2.0

+9
source

Source: https://habr.com/ru/post/1534261/


All Articles