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 are event emitters?

0 Answers  


What are the difference between @inject and @injectable?

0 Answers  


what is di (dependency injection) and how an object or function can get a hold of its dependencies?

0 Answers  


What is angular cli json?

0 Answers  


What is patchvalue used for?

0 Answers  


Explain data binding in angular js.

0 Answers  


What is an async pipe?

0 Answers  


Why this project is called "AngularJS"?

1 Answers   SLK Software,


How to use filter in angular js?

0 Answers  


What are angular observables?

0 Answers  


Is angular easy to learn?

0 Answers  


What is difference between $window and window in AngularJS?

1 Answers  


Categories