diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index 9e760eb73d..e9110c3a73 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -102,6 +102,14 @@ function($rootScope, $document, $compile, $timeout, $ionicPlatform, $ionicTempla */ show: function() { var self = this; + + if(self.scope.$$destroyed) { + console.error('Cannot call modal.show() after remove(). Please create a new modal instance using $ionicModal.'); + return; + } + + console.log(self.scope); + var modalEl = jqLite(self.modalEl); self.el.classList.remove('hide');