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 |
What is subscript method in angular?
Explain what is the difference between angularjs and backbone.js?
What is @inject()?
Why should use angular js?
List some advantages of angular 2 over angular1.
What are the advantages of angular 2 over angular 1?
How to validate email in angular 4 using formgroup or custom regexp?
What are differences between angular 2 and angular 1?
What are the 3 types of advance directives?
What is an entry component?
Explain One-way binding in AngularJS?
What are angular testing utilities?