Calling a IonicModal on top of another IonicModal


#1

The usage of the $ionicModal service is explained here: https://ionicframework.com/docs/api/components/modal/ModalController/

I have a situation where it happens that I open more than two modals.

For example:

I first open a loginModal
In there, user clicks on a button “openSignUp()” which opens the SignUpModal

A model calling from another is not working ?

// opening loginmodal here
let profileModal = this.modalCtrl.create(loginModal, {
UserID:this.lsb_Userid,TRC:‘PO’ });
profileModal.onDidDismiss(data => {
if(data){
//
}
});
profileModal.present();

// opening signupmodal from loginModal and its not working

let profileModal = this.modalCtrl.create(Signupmodal, {
UserID:"",
TypeCode:‘AppBatch’,
Title:‘Signup’,
Param1Code: this.navParams.get(‘TRC’),
Param2Code: ‘NONE’,
Param3Code:‘NONE’,
Param4Code:‘NONE’,
Param5Code:‘NONE’,
Param6Code:‘NONE’,
Param7Code:‘NONE’,});

        profileModal .onDidDismiss(data => {   
            if(data){ 
           
            }            
        });