import { Component } from '@angular/core' ; import { IonicPage , NavController } from '../../../../../..' ; @ IonicPage ( ) @ Component ( { templateUrl : 'main-page.html' } ) export class MainPage { constructor ( public navCtrl ) { } goToSecond ( ) { this . navCtrl . push ( 'SearchPage' ) ; } }