How can I put an Ionic 2 Modal in a separate file?
问题 I'm using Ionic 2 and want to use a Modal for different pages. One use case is the creation and editing of messages: I want to display a "new message" button on the dashboard page, another "new message" button on the messages list page and a third button "edit message" on the message view page. All of those buttons should open the same MessagesEditModal. My current code looks like that: import { Component } from '@angular/core'; import { Modal, NavController, ViewController } from 'ionic