e modalController to present and dismiss modals.</p>
      </ion-content>
    </ion-app>

    <script>
      const openModal = async () => {
        const div = document.createElement('div');
        div.innerHTML = `
      <ion-header>
        <ion-toolbar>
          <ion-buttons slot="start">
            <ion-button color="medium" onclick="cancel()">Cancel</ion-button>
          </ion-buttons>
          <ion-title>Welcome</ion-title>
          <ion-buttons slot="end">
            <ion-button onclick="conf