angularjs - $http.post().then vs $q library? -
it understanding when $http.post(...).then(...)
in angularjs, returns promise. confusing part me $q
promise library , if $http.post(...).then(...)
creates promise me, $q
library necessary?
if dealing respose via $http.post(...).then(...)
don't need use $q
service directly.
but angular uses $q
internaly when calling $http
.
also note $q
not separate library, module inside angular core.
Comments
Post a Comment