Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to enable caching in $http service?



How to enable caching in $http service?..

Answer / 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

More AngularJS Interview Questions

List the new features of angular 2?

0 Answers  


When to use factory?

0 Answers  


What is a decorator function?

0 Answers  


What is transclusion in angular?

0 Answers  


What is a component in angular 2?

0 Answers  


How do you check if angular cli is installed?

0 Answers  


How angular router works?

0 Answers  


Which directive is used to hide elements from the html dom by removing them from that dom and not changing their styling?

0 Answers  


Tell me can we use the open-source closure library with angular?

0 Answers  


Angular 4 grid with crud operations what is angular router?

0 Answers  


How to enable caching in $http service?

1 Answers  


What are the possible ways to bind component properties to an associated template?

0 Answers  


Categories