What is the difference between $http and $resource?
Answer / 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 |
What is urlsegment interface in angular 7?
What is the life cycle event to check whether the dom is fully loaded?
What is the use of codelyzer in angular 2?
What do you know about injector?
Should you use angular?
What is $rootscope?
What is ngzone run outside angular 2?
What is compilation in angular? What types of compilations are used in angular?
How to updating angular cli?
Explain digest life-cycle in AngularJS?
What is location path?
What is the purpose of exports in an ng module?