import { Component } from '@angular/core' ; import { IonicPage , NavController , } from '../../../../../../..' ; @ IonicPage ( ) @ Component ( { templateUrl : 'first-page.html' } ) export class FirstPage { constructor ( public nav ) { } goToPageTwo ( ) { this . nav . push ( 'SecondPage' , { userId : '123' , name : 'Michael Scott' } ) ; } }