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 difference between angular service and factory?

706


Please explain package.json file in angular?

878


How to use angular datepicker in angular 5/4 applications?

753


What are the advantages of using angular.js framework?

740


Can react be used with php?

721


What is react lazy?

742


What are the advantages and disadvantages of art compilation?

755


What is internationalization?

773


How can you get url parameters from angularjs controller?

814


What is the angular cli?

746


What are the Output of AngularJS $http Service?

805


What are typings in angular?

745


What is router and why is it used in angular?

755


What is angular material?

746


Explain ngmodule?

760