我有一个接受Input参数的组件:
export class MapComponent implements OnInit {
@Input() options: Mapoptions<any>;
}
I页面使用离子ModalController打开此模态:
async pickLocationmodal() {
const modal = await this.modalController.create({
component: MapComponent
});
return await modal.present();
}
此外,我还希望将mapoptions存储在页面中。
我可以将mapoptions传递给Modal,以便组件将其作为输入吗?