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

Explain ng-disabled directive angularjs?

0 Answers  


What do you know about injector?

0 Answers  


What is data binding in angular?

0 Answers  


New html element?

0 Answers  


What is parameterizing pipe?

0 Answers  


What is the use of interceptors in angular 4?

0 Answers  


What is the difference between `{'ngfor'}` and `{`ngforof`}` in angular 2?

0 Answers  


In how many ways the Data Binding can be done?

0 Answers  


Explain ng-init directive ?

0 Answers  


Does angular js depends on jquery library?

0 Answers  


What is the use of ngafterviewinit?

0 Answers  


What is aot compilation? Why use in angular 2?

0 Answers  


Categories