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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -