2017-07-03 120 views
0

當我打開模式並顯示驗證消息時,我無法關閉該消息,但可以關閉模​​式,但無法關閉消息..無法關閉離子模式的離子超級彈出框

Plugin ionic-super-popup

模態碼

$ionicModal.fromTemplateUrl('modalCadastrar', { 
      scope: scope, 
      backdropClickToClose: false 
     }).then(function (modal) { 
      scope.modalCadastrar = modal; 
     }); 

消息代碼:

ionicSuperPopup.show("Basic Super Popup!"); 

觀測值:它的工作時,它不是一個模式裏面...

回答

0

我找到了解決辦法,這是對插件的GitHub網站..

$scope.showIonicSuperPopup=function(){ 
//ADD THIS BEFORE 
$ionicModal.fromTemplateUrl('workaround-modal.html', { 
    scope: $scope 
}).then(function(modal) { 
    $scope.workaroundModal = modal; 
    $scope.workaroundModal.show(); 
    $scope.workaroundModal.hide(); 
}); 

ionicSuperPopup.show(....); 

};