import { Component } from '@angular/core'; import { ionicBootstrap, NavController } from '../../../../../src'; @Component({ templateUrl: 'main.html', }) class SegmentPage { signInType: string; constructor(public nav: NavController) { this.signInType = 'new'; } goToPage2() { this.nav.push(SegmentPage2); } } @Component({ template: ` Second Page

Page 2

` }) class SegmentPage2 {} @Component({ template: `` }) class E2EApp { root = SegmentPage; } ionicBootstrap(E2EApp);