mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
33 lines
460 B
TypeScript
33 lines
460 B
TypeScript
import {App, Page} from 'ionic/ionic';
|
|
|
|
|
|
@Page({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class E2EPage {
|
|
constructor() {
|
|
this.musicAlertOpts = {
|
|
title: '1994 Music',
|
|
subTitle: 'Select your favorite'
|
|
};
|
|
|
|
setTimeout(() => {
|
|
this.gender = 'm';
|
|
}, 1500);
|
|
}
|
|
|
|
stpSelect() {
|
|
console.log('STP selected')
|
|
}
|
|
}
|
|
|
|
|
|
@App({
|
|
template: '<ion-nav [root]="root"></ion-nav>'
|
|
})
|
|
class E2EApp {
|
|
constructor() {
|
|
this.root = E2EPage;
|
|
}
|
|
}
|