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 |
How can we fix it?
Mention what are the characteristics of “scope”?
What are the differences between $resource and $http?
What IDEs you can use for AngularJS development?
What is *ngfor directive used for?
What is data binding and its types?
What is service in angularjs with example?
What does ‘ng-serve’ do?
What is ivy renderer? Is it supported by angular 7?
What is new in Angular 8?
What is ngmodules?
What does tree shaking mean?