What is the difference between $http and $resource?



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

Post New Answer

More AngularJS Interview Questions

How can we fix it?

0 Answers  


Mention what are the characteristics of “scope”?

0 Answers  


What are the differences between $resource and $http?

0 Answers  


What IDEs you can use for AngularJS development?

1 Answers   SLK Software,


What is *ngfor directive used for?

0 Answers  


What is data binding and its types?

0 Answers  


What is service in angularjs with example?

0 Answers  


What does ‘ng-serve’ do?

0 Answers  


What is ivy renderer? Is it supported by angular 7?

0 Answers  


What is new in Angular 8?

1 Answers  


What is ngmodules?

0 Answers  


What does tree shaking mean?

0 Answers  


Categories