import { Component } from '@angular/core' ; import { NavController } from 'ionic-angular' ; import { CheckoutPage } from '../checkout/checkout' ; @ Component ( { templateUrl : 'showcart.html' , } ) export class ShowcartPage { quantity : any ; constructor ( private navCtrl ) { this . quantity = 1 ; } goToCheckout ( ) { this . navCtrl . push ( CheckoutPage ) ; } }