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 do you mean by data binding?
What is difference between service and factory?
Differentiate between Observables and Promises?
Why Typescript with Angular?
What are directives? How to create and use custom directive in angularjs.
What is the purpose of using package.json in the angular project?
Explain what is Angular Expression?
How angularjs is used to handle the security hurdles?
When using ngif if the condition is true. How to display the message and if the condition is false then how to display the message?
What is node js good for?
How angular 4 is different from angular 2?
Explain directives ng-if, ng-switch and ng-repeat?