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
What is the difference between angular service and factory?
Please explain package.json file in angular?
How to use angular datepicker in angular 5/4 applications?
What are the advantages of using angular.js framework?
Can react be used with php?
What is react lazy?
What are the advantages and disadvantages of art compilation?
What is internationalization?
How can you get url parameters from angularjs controller?
What is the angular cli?
What are the Output of AngularJS $http Service?
What are typings in angular?
What is router and why is it used in angular?
What is angular material?
Explain ngmodule?