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 event emitters?
What are the difference between @inject and @injectable?
what is di (dependency injection) and how an object or function can get a hold of its dependencies?
What is angular cli json?
What is patchvalue used for?
Explain data binding in angular js.
What is an async pipe?
Why this project is called "AngularJS"?
How to use filter in angular js?
What are angular observables?
Is angular easy to learn?
What is difference between $window and window in AngularJS?