fix(modal-controller): initialize ids

This commit is contained in:
Dan Bucholtz
2018-01-08 13:26:08 -06:00
parent b31591b371
commit 0188b44bcc
2 changed files with 3 additions and 10 deletions

View File

@ -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({

View File

@ -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