My app is based on the tabs template. When the app comes to the foreground I want to force the data to be reloaded if it is stale. Since
$ionicView.enter don’t get called when app comes to the foreground, I’ve got the $ionicPlatform on resume event working fine in the .run of app.js.
I know which tab is selected, by using
$ionicTabsDelegate.selectedIndex() but I now need to call the refresh function on the relevant tab’s controller and have no idea how to do that!
Using the tabs starter template, this would be equivalent of calling the
ChatsCtrl remove function from