import {IonicApp, IonicView, Modal} from 'ionic/ionic'; import {SinkPage} from '../sink-page'; @IonicView({ template: ` Modal

Modal

Modals are entire views that slide in off screen.

Modals make it easy to open a new "context" for the user, without taking them out of the current context. For example, clicking the "compose" button on a mail app might slide up a Compose modal.

` }) export class ModalPage extends SinkPage { constructor(app: IonicApp, modal: Modal) { super(app); this.modal = modal; } openModal() { console.log('Opening modal'); this.modal.open(MyModal); } } @IonicView({ template: '', }) export class MyModal {}