mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
30 lines
568 B
TypeScript
30 lines
568 B
TypeScript
import { Component, NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { IonicApp, IonicModule } from '../../../../..';
|
|
|
|
import { RootPage } from '../pages/root-page/root-page';
|
|
|
|
@Component({
|
|
template: '<ion-nav [root]="root"></ion-nav>'
|
|
})
|
|
export class E2EApp {
|
|
root = RootPage;
|
|
}
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
E2EApp,
|
|
RootPage
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
IonicModule.forRoot(E2EApp)
|
|
],
|
|
bootstrap: [IonicApp],
|
|
entryComponents: [
|
|
E2EApp,
|
|
RootPage
|
|
]
|
|
})
|
|
export class AppModule {}
|