在我的离子框架中,单击提交按钮会打开一个确认弹出窗口。
我想点击Yes It is! button
显示另一个类似的弹出窗口。如何在单击一个弹出按钮时定位另一个弹出窗口。
我的控制器代码如下:
.controller('PopupCtrl', function($scope, $ionicPopup){
//confirm Number
$scope.confirmNumber = function(){
var confirmPopup = $ionicPopup.confirm({
title: 'NUMBER CONFIRMATION:',
template: '<span class="numberConfirm">+91 9820098200</span>Is your phone number above correct?',
buttons: [{
text: 'Edit',
type: 'button-block button-outline button-stable',
scope: null,
onTap: function(e) {
}
}, {
text: 'Yes, it is!',
type: 'button-block button-outline button-stable',
onTap: function(e) {
return scope.data.response;
}
}]
});
confirmPopup.then(function(res){
if(res){
}else{
}
});
};
});