modal controller in ionic 5 code example
Example: ionic modal controller
constructor(public modalCtrl: ModalController) {}
...
presentProfileModal() {
let profileModal = this.modalCtrl.create(Profile, { userId: 8675309 });
profileModal.present();
}