我试图从一个打开的 md 对话框中打开一个 md 对话框,但问题是第一个 md 对话框在第二个打开时关闭
// the controller of the first popUp
class popUpOneController{
constructor($mdDialog){
this.$mdDialog=$mdDialog;
.
.
.
}
others methods codes......
// the second $mdDialog to be opened from the first
// this function will be executed by clicking on a html button
openPopUp2(){
// here we call a component into the $mdDialog
this.$mdDialog.show({
template: '<interlo-sibel data-to-pass='+data+' index-selectedElm='+index+' type='+type+' ></interlo-sibel>',
targetEvent: event,
escapeToClose: false
})
}
popUpOneController.$inject=['$mdDialog'];
export default popUpOneController