mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
34 lines
648 B
TypeScript
34 lines
648 B
TypeScript
import { Component, CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { IonicApp, IonicModule } from '../../../..';
|
|
|
|
|
|
@Component({
|
|
templateUrl: 'main.html'
|
|
})
|
|
export class E2EPage {}
|
|
|
|
@Component({
|
|
template: '<ion-nav [root]="rootPage"></ion-nav>'
|
|
})
|
|
export class AppComponent {
|
|
rootPage = E2EPage;
|
|
}
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
E2EPage
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
IonicModule.forRoot(AppComponent)
|
|
],
|
|
bootstrap: [IonicApp],
|
|
entryComponents: [
|
|
E2EPage
|
|
],
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
})
|
|
export class AppModule {}
|