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
What are the differences between link and compile?
What is the use of restrict and template property when creating custom directives?
When will nginit be called?
Is webpack necessary for angular?
What is injectable in angular2?
What are the features of angular?
What does :host-context() pseudo-class selector target?
Explain ng-bind and ng-bind-html directives.
What sre the directives in angularjs?
What is isolate scope in angularjs and why it is required?
What is the use of ngfortrackby directive?
What is the difference between angularjs and node.js?
What is lazy loading in angular 2?
What is [( ngmodel )]?
What is a mocked service in angularjs? How to use it?