mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
29 lines
583 B
TypeScript
29 lines
583 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]="rootPage"></ion-nav>'
|
|
})
|
|
export class AppComponent {
|
|
rootPage = RootPage;
|
|
}
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
RootPage
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
IonicModule.forRoot(AppComponent)
|
|
],
|
|
bootstrap: [IonicApp],
|
|
entryComponents: [
|
|
RootPage
|
|
]
|
|
})
|
|
export class AppModule {}
|