mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(ngmodule): update to ngmodule
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap, App, AlertController, ModalController, ViewController, Tab, Tabs } from '../../../../../src';
|
||||
import { Component, NgModule } from '@angular/core';
|
||||
import { IonicApp, IonicModule, App, AlertController, ModalController, ViewController, Tab, Tabs } from '../../../..';
|
||||
|
||||
//
|
||||
// Modal
|
||||
@@ -43,7 +43,7 @@ import { ionicBootstrap, App, AlertController, ModalController, ViewController,
|
||||
</ion-content>
|
||||
`
|
||||
})
|
||||
class MyModal {
|
||||
export class MyModal {
|
||||
items: any[] = [];
|
||||
|
||||
constructor(private viewCtrl: ViewController, private app: App) {
|
||||
@@ -263,4 +263,26 @@ export class E2EApp {
|
||||
root = TabsPage;
|
||||
}
|
||||
|
||||
ionicBootstrap(E2EApp);
|
||||
@NgModule({
|
||||
declarations: [
|
||||
E2EApp,
|
||||
MyModal,
|
||||
Tab1,
|
||||
Tab2,
|
||||
Tab3,
|
||||
TabsPage
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
E2EApp,
|
||||
MyModal,
|
||||
Tab1,
|
||||
Tab2,
|
||||
Tab3,
|
||||
TabsPage
|
||||
]
|
||||
})
|
||||
export class AppModule {}
|
||||
Reference in New Issue
Block a user