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 |
Is java front end or backend?
What makes angular.js better?
Explain the difference between angular service and factory? Explain
What is a template variable. How would you use it?
How do components communicate with each other in angular 2?
What is flex layout in angular?
List down the popular angularjs ide plugins/extensions for web development?
What are the attributes that can be used during the creation of a new angularjs directives?
What is the use of lazy loading in angular 6?
What is angular 4 and why it is used?
How to enable caching in $http service?
How can we show that a scope variable should have one-time binding only?