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
Is react backend or frontend?
What is a routing in angular js?
How do you use ng value?
What is The Manual Bootstrap Process in AngularJS?
Distinguish between factory, service & provider?
How to implement a datagrid table with angular 2 and primeng?
What is a typescript decorator?
Explain about single and multithread in javascript?
What is an angular 2 component?
What is the main purpose of find index in angularjs?
What is ecmascript ?
What the different between a directive and component?
What is the factory method in angular 2?
What is default scope in a angular directive?
How can primeng be used with angular2?