$http | $resource |
---|---|
$http is for universal purpose. It is an Ajax call. |
$resource warps $http for use in RESTful web APIs. |
$http is built into the AngularJS framework. |
$resource needs to add the module separately. |
$http is good for quick retrieval. |
$resource is good for conditions slightly more complex than $http . |
$http is injected directly into an AngularJS controller by the developer. |
$resource does not allow us to do much with data once it is consumed in the application. … |
Ref: https://www.safaribooksonline.com/library/view/mastering-angularjs-for/9781783553983/ch06s04.html