Similar problem here (that I mentioned in another thread).
Having trouble getting audio objects to close and deallocate from memory because this event is being ignored by the framework. Hope this is resolved soon.
var TIMER = $interval(function() {
// If we're no longer on the page, cancel the TIMER.
if( $ionicHistory.currentView().stateName != 'STATE' ){
$interval.cancel(TIMER);
return;
}
...
}
The uiRouter has also state-events like:
$stateChangeStart or $stateChangeSuccess ;), where you can check a state-change or if the $stateChange is finished.
I am having the same issue. $stateChangeStart does not fire, and $ionicView.leave does not fire when changing tabs. I am using ionic v1.3.1. I cant believe its been over a year and Ionic hasn’t fixed this.