Skip to content

Instantly share code, notes, and snippets.

@amilamen
Forked from mhartington/dynamic-modal.ts
Created December 12, 2020 03:03
Show Gist options
  • Save amilamen/6b0ae6c639018a27a15246af0a3e76a1 to your computer and use it in GitHub Desktop.
Save amilamen/6b0ae6c639018a27a15246af0a3e76a1 to your computer and use it in GitHub Desktop.
async toggle() {
if (!this._playerModal) {
const { PlayerModalComponent } = await import( '../player-modal/player-modal.component');
this._playerModal = PlayerModalComponent;
}
const modalInstance = await this.modalCtrl.create({
component: this._playerModal,
swipeToClose: true,
cssClass: 'full-modal',
});
await modalInstance.present();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment