I\'m developing a view that need call multiples methods of a webservice every time the view is opened, should i use $scope.$on(\'$ionicView.enter\', function(){...})>
I really enjoyed this Q & A:
Where the Bipin Bhandari nicely summarizes the options we have with ionic caching mechanism
cache: false,$ionicConfigProvider.views.maxCache(0);So, with caching in place, controller will be executed just once:
Views are cached to improve performance. When a view is navigated away from, its element is left in the DOM, and its scope is disconnected from the $watch cycle. When navigating to a view that is already cached, its scope is reconnected, and the existing element, which was left in the DOM, becomes active again.
We can hook on these events... to do some "always stuff" with this controller