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 |
Explain ng-disabled directive angularjs?
What do you know about injector?
What is data binding in angular?
New html element?
What is parameterizing pipe?
What is the use of interceptors in angular 4?
What is the difference between `{'ngfor'}` and `{`ngforof`}` in angular 2?
In how many ways the Data Binding can be done?
Explain ng-init directive ?
Does angular js depends on jquery library?
What is the use of ngafterviewinit?
What is aot compilation? Why use in angular 2?