当它在一个模态中时,无法关闭Ionic-super-popup

时间:2017-07-03 14:07:35

标签: angular cordova ionic-framework

当我打开模态并显示验证消息时,我无法关闭消息,但我可以关闭模​​式,但无法关闭消息..

Plugin ionic-super-popup

模态代码

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

消息代码:

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

Obs:当它不在模态中时它正在工作......

1 个答案:

答案 0 :(得分: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(....);

};