阅读背景:

每当我离开页面然后重新进入时,Angular $ http就会触发

来源:互联网 

I have an Ionic app that is making an $http request to the server. I am listing a number of articles and the user has the option to go into a single article. My problem is that I noticed that when I go into the page that lists the articles it makes a call to retrieve that list of articles. if I go out of that page then back in again it makes that call again. Is there a way to cache that data so that it only makes a call to the server if, in the instance of "pull to refresh" or set a timer for it to make calls?I have an Ionic app that is making an $http req




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: