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 |
Mention what are the styling form that model adds to css classes?
Differentiate between one-way binding and two-way data binding.
What is difference between structural and attribute directives?
What is token based authentication in angular 4?
Do you know scope in angular?
How to perform animation in angular?
What is the latest angular?
Explain the architecture of angular 2?
Explain the concept of hierarchy?
What are different states of a form in AngularJS?
Can you disable route guard?
How can I be lazy?