First, import ModalControlle in modal page constructor.
constructor(private modalController: ModalController) { }
then create a method, inside the method create a modal and present it.
async openExpense() {
const modal = await this.modalController.create({
component : AddExpensePage
});
return await modal.present();
}
How to close modal page
async closeModal() {
await this.modalController.dismiss();
}
Comments
Post a Comment