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 are the interview questions for angularjs?
How to use ng-show and ng-hide in angular js?
Is pipe a system call?
What are the new features in angular 8?
What does full stack mean?
Explain factory methods in angularjs?
How can someone set, get, and clear cookies in angularjs?
What is the controller in angularjs?
What is template angular 2? Why use?
Explain filter filter angularjs?
In collection of array how to collect all the true state from active true and active false?
What would you not put the shared module?