mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(modal-controller): initialize ids
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Component, Listen, Method } from '@stencil/core';
|
||||
import { Modal, ModalEvent, ModalOptions } from '../../index';
|
||||
|
||||
let ids: 0;
|
||||
let ids = 0;
|
||||
const modals = new Map<number, Modal>();
|
||||
|
||||
@Component({
|
||||
|
@ -38,16 +38,9 @@
|
||||
// create component to open
|
||||
const element = document.createElement('ion-page');
|
||||
element.innerHTML = `
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>Cool Modal</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content padding>
|
||||
<h1>Super content</h1>
|
||||
<div>Additional content</div>
|
||||
<div style="height: 500px; background-color: red">
|
||||
<ion-button>Close the modal</ion-button>
|
||||
</ion-content>
|
||||
</div>
|
||||
`;
|
||||
|
||||
// listen for close event
|
||||
|
Reference in New Issue
Block a user