import { Component } from '@angular/core' ; import { IonicPage , ModalController } from '../../../../../..' ; @ IonicPage ( { name : 'page-two' } ) @ Component ( { templateUrl : 'page-two.html' } ) export class PageTwo { page1 = 'page-one' ; page3 = 'page-three' ; constructor ( public modalCtrl ) { } openModal ( ) { const modal = this . modalCtrl . create ( 'modal-page' ) ; modal . present ( ) ; } }