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
How can you create a decorator in angular?
Explain deep linking in angularjs?
Mention what are the advantages of using angularjs?
Is angular a ui framework?
Is angular js is a library, framework or plugins?
What does full stack mean?
What is @ngmodule in angular 2? Explain
What is hashlocationstrategy?
What is a factory?
Can you explain to $on and/or $watch ?
What are improvements in angular 6?
What is npm in angular?
Explain .config() and .run() methods in angularjs?
What is difference between http and httpclient in angular?
Differentiate between dom and bom.