Files
ionic-framework/src/components/item/test/inputs/app-module.ts
2016-12-05 22:12:13 +01:00

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 {}