Also, in beta 14 (and the nightlies) there is view caching, which may solve your issue. If you put your http call in the controller it will only be called the first time the view is loaded and therefore the list won’t be reloaded until that view is no longer cached.
From Please help test: Angular 1.3, improved transitions, cached views (repost) :
Cached Views:
Previously, as a user navigated an app, each exiting view’s element and scope would be destroyed. If the same view was accessed again then the app would have to recreate the element. Views can now be cached to improve performance.
Now, when a view is exited, its elements are left in the DOM, and its scope is disconnected from the cycle. When navigating to a view which is already cached, its scope is reconnected, and the existing element which was left in the DOM becomes the active view.
This also allows for scroll position of previous views to be maintained (without skippy jumps).
Config variables can be used to disable view caching, IE set to 0, or change the maximum number of views to cache.
Individual ionViews can disable caching by using the cache-view=“false” attribute, or from its $stateProvider.state config.
Note: Views with many large images or videos should not be cached.
The ionNavView docs have more further documentation.
I’m not sure if this will solve your problem but I wanted to throw it out there!
1 Like