title: ionicModal disapears after a few seconds
body: <p>I'm trying to use $ionicModal.
  when I call <code>$scope.codeModal.show();</code>  modal pops up but immediately disapears. but when I click on the modal , it appears.
  here is my Angular code:</p>
  
  <pre><code>$ionicModal.fromTemplateUrl('templates/resetCodeTemplate.html', {
          scope: $scope
        })
          .then(function (modal) {
            $scope.codeModal = modal;
          });
  
  $scope.resetBaseCodeShow = function () {
          $scope.codeModal.show();
        };
  </code></pre>
  
  <p>any Idea why it happens?</p>