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
Why is angular popular?
What are the new features in angular 6?
What is deep linking in angular 4?
How to configuring routes in angular js?
What is component in angular?
How to import css using system import?
Explain ng-hide directive?
How does a controller work?
How to catch and log specific angular errors in your app?
How google handles security in angular 4 applications?
What are the directive scopes in angularjs?
How to get the data from db?
What is the difference between angularjs and node.js?
What is injector in angularjs?
What are http interceptors?