当我打开模态并显示验证消息时,我无法关闭消息,但我可以关闭模式,但无法关闭消息..
模态代码
$ionicModal.fromTemplateUrl('modalCadastrar', {
scope: scope,
backdropClickToClose: false
}).then(function (modal) {
scope.modalCadastrar = modal;
});
消息代码:
ionicSuperPopup.show("Basic Super Popup!");
Obs:当它不在模态中时它正在工作......
答案 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(....);
};