After upgrading an existing Ionic project from 1.13 to beta 1.14, I experienced some behavior that I cannot explain. When switching from one viewport to another, the old view does not leave the page. When registering angular ui router events and ionic navigation events, I noticed that Ionic Exit Events do not fire:
$ionicView.leave $ionicView.beforeLeave $ionicView.afterLeave
Documentation: ( http://ionicframework.com/blog/navigating-the-changes/ )
Has anyone else experienced this behavior? If so, have you found a way to solve this?
Events:
$stateChangeStart: App.LoadApp.Input -> App.Main.QrToken $viewContentLoading: Main $viewContentLoading: QrToken $stateChangeSuccess: App.LoadApp.Input -> App.Main.QrToken $ionicView.beforeEnter $ionicView.afterEnter $ionicView.enter
I can load in a QrToken view if I haven't nested it in Main, so I believe the problem is there. Can anyone take a look at my basic template and help find a solution.
<div ng-controller="fbMenuController"> <ion-side-menus> <ion-side-menu side="left"> <ion-header-bar class="bar-dark"> <h1 class="title">Menu</h1> </ion-header-bar> <ion-content scroll="true"> <div ng-repeat="Group in fb.Model.MenuGroups"> <ion-item class="item-divider">{{Group.Name}}</ion-item> <a ng-repeat="Page in Group.Items" nav-transition="android" nav-direction="swap" class="item" ng-click="fb.SelectPage(Page.State)"> {{ Page.Name }} </a> </div> </ion-content> </ion-side-menu> <ion-side-menu-content> <ion-header-bar class="bar-dark" ng-show="fb.Model.ShowHeader"> <div class="buttons"> <button class="button-icon icon ion-navicon" ng-click="fb.ToggleLeftMenu()"></button> </div> <h1 class="title">{{ fb.Model.ActivePage.Name }}</h1> </ion-header-bar> <ion-content scroll="true"> <ion-nav-view name="Main"> </ion-nav-view> </ion-content> </ion-side-menu-content> </ion-side-menus> </div>
source share