title: Ionic app freezes or stops working after popover and modal closes
body: <p>I have an ionic app that has a side-menu, a pop-over, and a modal.</p>
  
  <ul>
  <li><p>In a page, there is a grid table.</p></li>
  <li><p>A user can select a row to highlight it.</p></li>
  <li><p>A user can then open the pop-over and either View or Edit the row.</p></li>
  <li><p>Upon selecting view or edit, a modal will open.</p></li>
  <li><p>In the modal, a cancel button in the upper right corner can be
  clicked to close the modal.</p></li>
  <li><p>After closing the modal, all clicks, touch, swipe, etc. are not being
  read by the app anymore.</p></li>
  </ul>
  
  <p>Here are the codes for <code>popover</code>, and <code>modal</code>.</p>
  
  <p><strong>JS</strong></p>
  
  <pre><code>// MODAL
  $ionicModal.fromTemplateUrl('templates/modals/view-product.html', {
    scope: $scope,
    animation: 'slide-in-up'
  })
  .then(function(modal) {
        $scope.viewModal = modal;
    });
  
    $scope.openModal = function(modal) {
      $scope[modal].show();
    };
    $scope.closeModal = function(modal) {
      $scope[modal].hide();
    };
  
  
  // POPOVER
    $ionicPopover.fromTemplateUrl('templates/popovers/list.popover.html', {
        scope: $scope,
    }).then(function (popover) {
        $scope.popover = popover;
    });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;!-- POP OVER --&gt;
  &lt;ion-popover-view class="fit"&gt;
      &lt;ion-content&gt;
          &lt;div class="list"&gt;
              &lt;a class="item" ng-click="viewProduct(this); popover.hide()" ng-bind="lblView"&gt;&lt;/a&gt;
              &lt;a class="item" ng-click="editProduct(this); popover.hide()" ng-bind="lblEdit"&gt;&lt;/a&gt;
          &lt;/div&gt;
      &lt;/ion-content&gt;
  &lt;/ion-popover-view&gt;
  
  &lt;!-- MODAL --&gt;
  &lt;ion-modal-view&gt;
      &lt;ion-header-bar class="bar bar-header bar-positive"&gt;
          &lt;h1 class="title"&gt;Viewing Product&lt;/h1&gt;
          &lt;button class="button button-clear button-primary" ng-click="closeModal('viewModal')"&gt;Cancel&lt;/button&gt;
      &lt;/ion-header-bar&gt;
      &lt;ion-content class="padding"&gt;
          &lt;div class="list"&gt;
             &lt;!-- list here --&gt;
          &lt;/div&gt;
      &lt;/ion-content&gt;
  &lt;/ion-modal-view&gt;
  </code></pre>