Cache Tabbar view?


I have an app with 4 Tabs. 2 of the Tabs load Json content via $http the function for this is defined inside the controller and gets loaded everytime i switch to that specific tab.

Is it possible to cache the Tabs view, well lets say if the populated json data is not older than 10 minutes or gets refreshed manually by pull to refresh ?


Have a look at inbuild caching of angular’s $http. There is also a drop-in replacement available, that can handle max-age. However this does only cache the json responses. It view is still recreated every time. In my case this takes longer than the ajax request :confused: