import { Component } from '@angular/core' ; import { App , IonicPage , ViewController } from '../../../../../..' ; @ IonicPage ( ) @ Component ( { templateUrl : 'modal-page.html' } ) export class ModalPage { items : any [ ] = [ ] ; constructor ( private viewCtrl , private app ) { for ( var i = 1 ; i <= 10 ; i ++ ) { this . items . push ( i ) ; } } dismiss ( ) { this . viewCtrl . dismiss ( ) ; } appNavPop ( ) { this . app . navPop ( ) ; } }