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 art compilation?
How to share information between controllers in AngularJS?
How AngularJS is different from other JavaScript Framework?
What are the different types of directive?
How do you use ng value?
Explain angular js boot process.
How did you hidden (not hide) the element in jquery?
What are the most important features of angularjs?
How is shadow dom helping angular 2 to perform better?
Explain the concept of scope hierarchy?
What is the aot compilation?
Difference betweek javascript, jquery and angularjs?