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

What are the fundamentals concepts of angular 2?

0 Answers  


What is provider in angularjs?

0 Answers  


What is @inject()? Why use?

0 Answers  


What angular components can be defined within AngularJS templates?

0 Answers  


What is single page application (spa)?

0 Answers  


Explain factory methods in angularjs?

0 Answers  


What are the life cycle hooks order in angularjs?

0 Answers  


What are different ways to create service in AngularJS?

0 Answers  


When should you use an attribute versus an element?

0 Answers  


What is the singleton pattern? How does angular use it?

0 Answers  


What are typescript types? In detail?

0 Answers  


What is router-link directive in angular 2?

0 Answers  


Categories