Refer to codepen ‘Ionic Sign-in, then Tabs’ example http://codepen.io/ionic/pen/kcjLb ,
the tab.hidden event is not fired if I add the following code in HomeTabCtrl.
$scope.$on(‘tab.shown’, function() {
// Maybe load some content here
console.log(‘Home tab.shown’);
});
$scope.$on(‘tab.hidden’, function() {
// Perhaps cycle out some data in memory here
console.log(‘Home tab.hidden’);
});
});