mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(picker): adds push() to test hardware go back
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component, ViewEncapsulation, NgModule } from '@angular/core';
|
||||
import { IonicApp, IonicModule, PickerController } from '../../../..';
|
||||
import { IonicApp, IonicModule, NavController, PickerController } from '../../../..';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -10,7 +10,14 @@ export class E2EPage {
|
||||
smoothie: string;
|
||||
timer: string;
|
||||
|
||||
constructor(private pickerCtrl: PickerController) {}
|
||||
constructor(
|
||||
public navCtrl: NavController,
|
||||
private pickerCtrl: PickerController
|
||||
) { }
|
||||
|
||||
push() {
|
||||
this.navCtrl.push(E2EPage);
|
||||
}
|
||||
|
||||
twoColumns() {
|
||||
let picker = this.pickerCtrl.create({
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
<ion-navbar>
|
||||
<ion-title>Picker</ion-title>
|
||||
<ion-buttons end>
|
||||
<button ion-button strong (click)="push()">Push</button>
|
||||
</ion-buttons>
|
||||
</ion-navbar>
|
||||
|
||||
</ion-header>
|
||||
|
||||
Reference in New Issue
Block a user