1...
2async presentModal() {
3 const modal = await this.modalController.create({
4 component: ModalPage,
5 componentProps: {
6 foo: 'hello',
7 bar: 'world'
8 }
9 });
10 return await modal.present();
11}
12...
13@Component()
14export class ModalPage implements OnInit {
15 foo;
16 bar;
17
18 ngOnInit() {
19 console.log(`${foo} ${bar}`)
20 }
21}
1let profileModal = await this.modalCtrl.create({
2 component: SearchModal,
3 componentProps: {
4 specs: [this.specialization_selected]
5 }
6});