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
How can you create a decorator in angular?
When did you use currency filter in angularjs?
What is @output in angular?
Can localstorage be hacked?
What is the difference between [ngfor] and [ngforof]?
What is grid in angular?
What’s the difference between dirty, touched, and pristine on a form element?
What is an ng model?
What are the Output of AngularJS $http Service?
How to add rows in angular js?
What is difference between directive and component?
What is angular 2?
What is a decorator function?
What are dsl animation functions in angular js. List them.
What are typings in angular?