import { Component } from '@angular/core'; import { ViewController } from 'ionic-angular'; @Component({...}) export class MyPage{ constructor(public viewCtrl: ViewController) {} }