Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is urlsegment interface in angular 7?

0 Answers  


What is the life cycle event to check whether the dom is fully loaded?

0 Answers  


What is the use of codelyzer in angular 2?

0 Answers  


What do you know about injector?

0 Answers  


Should you use angular?

0 Answers  


What is $rootscope?

0 Answers  


What is ngzone run outside angular 2?

0 Answers  


What is compilation in angular? What types of compilations are used in angular?

0 Answers  


How to updating angular cli?

0 Answers  


Explain digest life-cycle in AngularJS?

0 Answers  


What is location path?

0 Answers  


What is the purpose of exports in an ng module?

0 Answers  


Categories