mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
48 lines
757 B
TypeScript
48 lines
757 B
TypeScript
import { Component, NgModule } from '@angular/core';
|
|
import { IonicApp, IonicModule } from '../../../..';
|
|
|
|
|
|
@Component({
|
|
templateUrl: 'main.html'
|
|
})
|
|
export class E2EPage {
|
|
disabled = false;
|
|
datetime = '2016-12-09';
|
|
toggle = true;
|
|
select = 'n64';
|
|
text = 'Text';
|
|
checkbox = true;
|
|
range = 10;
|
|
|
|
boolDisabled(): boolean {
|
|
return this.disabled;
|
|
}
|
|
|
|
strDisabled(): string {
|
|
return this.disabled + '';
|
|
}
|
|
}
|
|
|
|
@Component({
|
|
template: '<ion-nav [root]="rootPage"></ion-nav>'
|
|
})
|
|
export class E2EApp {
|
|
rootPage = E2EPage;
|
|
}
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
E2EApp,
|
|
E2EPage
|
|
],
|
|
imports: [
|
|
IonicModule.forRoot(E2EApp)
|
|
],
|
|
bootstrap: [IonicApp],
|
|
entryComponents: [
|
|
E2EApp,
|
|
E2EPage
|
|
]
|
|
})
|
|
export class AppModule {}
|