What is the difference between $http and $resource?
Answer Posted / chaitanya
$http is good for quick retrieval of server-side data that doesn’t really need any specific structure or complex behaviors. $http is good for retrieval of RESTful server-side data sources that might need any specific structure or complex behaviors.
$resource warps $http and allows you to interact with RESTful server-side data sources. It requires the ngResource module to be installed which exist in angular-resource.js
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are pipes in angular 2?
List some cons or disadvantages of using angularjs?
What is decorator in angular?
What is location path?
Is $http service is restful web service in angular js?
Explain service workers in angular js?
What is shadow dom?
List of useful ionic 3 cli commands?
Why decorators are used in angular?
What is ngmodule in angular?
Explain viewencapsulation?
What is difference between javascript and typescript?
Is angular still popular?
Is @service a singleton?
Who made angular?