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

Is java front end or backend?

0 Answers  


What makes angular.js better?

0 Answers  


Explain the difference between angular service and factory? Explain

0 Answers  


What is a template variable. How would you use it?

0 Answers  


How do components communicate with each other in angular 2?

0 Answers  


What is flex layout in angular?

0 Answers  


List down the popular angularjs ide plugins/extensions for web development?

0 Answers  


What are the attributes that can be used during the creation of a new angularjs directives?

0 Answers  


What is the use of lazy loading in angular 6?

0 Answers  


What is angular 4 and why it is used?

0 Answers  


How to enable caching in $http service?

1 Answers  


How can we show that a scope variable should have one-time binding only?

0 Answers  


Categories