Answer Posted / chaitanya
You can enable caching in $http service by setting configuration property cache to true. When cache is enabled, $http service stores the response from the server in local cache. In this way, next time the response will be served from the cache without sending request to server. $http.get("http://server/myserviceapi",{ cache:true }).sucess(function(){ //TO DO: });
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is AngularUI router and how it is different from ngRoute?
What are components life-cycles?
What is routerlink?
Can you bootstrap multiple angular applications on same element?
Which is better react or angular?
What is a dom in angular 2?
How does angularjs dependency injection work?
What is the difference between [ngfor] and [ngforof]?
How to apply validation in AngularJS?
How would you optimize the application for better performance in angular 2?
Why is dom used?
What are the different types of filters in angular?
What are services in angular 2?
How to use $routeparams in generating the templateurl?
When should you use an attribute versus an element?