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’s the difference between form, formgroup, and formcontrol? How do they work together?
What is a view in angular?
How can we create a component using angular cli?
What is * ngfor?
Why should I use angular?
Explain what is string interpolation in angular.js ?
What are templates?
Is angular 8 released?
What are custom directives?
What is subscribe in angular?
What are angular templates?
Explain bootstrapping in angularjs?