title: Ionic - View Leave Events Never Called
body: <p>After updating an existing Ionic project from 1.13-beta to 1.14-beta I've experienced some behaviour I can't explain. When changing from one viewstate to another, the old view doesn't leave the page. Upon logging both angular ui router events and Ionic navigation events I've noticed Ionic's Exit Events aren't fired:</p>
  
  <pre><code>$ionicView.leave
  $ionicView.beforeLeave
  $ionicView.afterLeave
  </code></pre>
  
  <p>Documentation: (<a href="http://ionicframework.com/blog/navigating-the-changes/" rel="noreferrer">http://ionicframework.com/blog/navigating-the-changes/</a>)</p>
  
  <p>Has anyone else experienced similar behaviour? If so, have you found any way to resolve this?</p>
  
  <p>Events Fired:</p>
  
  <pre><code>$stateChangeStart: App.LoadApp.Input -&gt; App.Main.QrToken
  $viewContentLoading: Main
  $viewContentLoading: QrToken
  $stateChangeSuccess: App.LoadApp.Input -&gt; App.Main.QrToken
  $ionicView.beforeEnter
  $ionicView.afterEnter
  $ionicView.enter
  </code></pre>
  
  <p>I can load in the QrToken view if I Don't nest it inside Main, so I believe the problem lie there. Can anyone take a look at my Main Template and help me find a solution.</p>
  
  <pre><code>&lt;div ng-controller="fbMenuController"&gt;
      &lt;ion-side-menus&gt;
  
          &lt;!-- Left menu --&gt;
          &lt;ion-side-menu side="left"&gt;
              &lt;ion-header-bar class="bar-dark"&gt;
                  &lt;h1 class="title"&gt;Menu&lt;/h1&gt;
              &lt;/ion-header-bar&gt;
              &lt;ion-content scroll="true"&gt;
                  &lt;div ng-repeat="Group in fb.Model.MenuGroups"&gt;
                      &lt;ion-item class="item-divider"&gt;{{Group.Name}}&lt;/ion-item&gt;
                      &lt;!-- href="#/Main/{{Page.Name}}" --&gt;
                      &lt;a ng-repeat="Page in Group.Items" nav-transition="android" nav-direction="swap" class="item" ng-click="fb.SelectPage(Page.State)"&gt;
                          {{ Page.Name }}
                      &lt;/a&gt;
                  &lt;/div&gt;
  
              &lt;/ion-content&gt;
  
          &lt;/ion-side-menu&gt;
  
          &lt;!-- Center content --&gt;
          &lt;ion-side-menu-content&gt;
              &lt;ion-header-bar class="bar-dark" ng-show="fb.Model.ShowHeader"&gt;
                  &lt;div class="buttons"&gt;
                      &lt;button class="button-icon icon ion-navicon" ng-click="fb.ToggleLeftMenu()"&gt;&lt;/button&gt;
                  &lt;/div&gt;
                  &lt;h1 class="title"&gt;{{ fb.Model.ActivePage.Name }}&lt;/h1&gt;
              &lt;/ion-header-bar&gt;
  
              &lt;ion-content scroll="true"&gt;
                  &lt;ion-nav-view name="Main"&gt;
  
                  &lt;/ion-nav-view&gt;
              &lt;/ion-content&gt;
          &lt;/ion-side-menu-content&gt;
  
      &lt;/ion-side-menus&gt;
  &lt;/div&gt;
  </code></pre>