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 bazel and closure compiler in angular6?
What is json web token in angularjs?
Why is it called angular?
What is linking function? What are post linking and pre-linking functions?
Why angular is needed?
Which is better angular material or bootstrap?
Why do we use angular 2?
What is $scope? How does it work?
List out the differences between config and run methods in angularjs?
How to install karma using npm?
What are angular providers?
What is The Manual Bootstrap Process in AngularJS?
What is angular and why angular?
What is the use of arrow function in angular 2?
Does google own angular?