Ionic 4 - Pass Data BACK from Modal

后端 未结 3 515
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 19:03

I\'m trying to create a modal window, pass it an array of objects, have a user select one object from that array, and then have my modal pass back the object they\'ve select

3条回答
  •  庸人自扰
    2020-12-15 19:50

    This is how you get data back from modal in Ionic 4 :

            contactsModal.onDidDismiss().then(data=>{
            console.log('data came back from modal');
            console.log(data);
        })
    

提交回复
热议问题