Skip to content

Instantly share code, notes, and snippets.

@mhartington
Created December 11, 2020 19:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mhartington/cf9d2271eb778880b0918fe41d857ef8 to your computer and use it in GitHub Desktop.
Save mhartington/cf9d2271eb778880b0918fe41d857ef8 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