test(ngmodule): update to ngmodule

This commit is contained in:
Adam Bradley
2016-09-13 15:44:02 -05:00
parent b8fb9c7c6d
commit d7be8a80c0
232 changed files with 4612 additions and 4893 deletions

View File

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