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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the spa (single page application) in angularjs?

866


What is ng-app, ng-init, and ng-model?

907


What are differences between angular 4 and angular 2?

934


What does :host-context() pseudo-class selector target?

816


What is pipe in angular?

961


What is digest loop?

818


How do you identify a structural directive in html?

828


What is the aot?

841


What is httpclient in angular?

933


Explain different filters provided by angularjs?

827


When do you use template-driven vs model-driven forms? Why?

908


Why there are two “destroy” events associated with the termination of scope in angularjs?

1476


explain ivy renderer in angular?

844


What is the difference between a unit and end-to-end (e2e) test in angularjs?

940


Which directive is used to hide elements from the html dom by removing them from that dom and not changing their styling?

841