How to enable caching in $http service?
Answer / 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 |
explain ivy renderer in angular?
What is angular 5?
Explain call and apply method?
What is angular base elements?
Is angularjs hard to learn?
Explain jquery selector?
What are some of the advantages of angularjs?
Explain the validation feature in angularjs?
Is angular front or back end?
What is traceur compiler in angular 2?
What are angular 2 hooks?
What classes should I add to module's declarations?