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 are the different types of filters in angular?
How to make an ajax call using angular js?
What is the difference between ng-if, ng-show/ng-hide?
Explain the compilation process of angularjs?
What is angular httpinterceptor?
Who made redux?
What is router and why is it used in angular?
What is hostlistener in angular?
What is @injectable()? Why use?
What is the use of ng-cloak directive in angularjs?
Explain what is angular expression? Explain what is key difference between angular expressions and javascript expressions?
Explain component specific hooks?
What is the function of module?
How to create custom form validations in angular?
What is api in angular?