2017-04-30 14:55:15 +00:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { ErrorHandler, NgModule } from '@angular/core';
|
|
|
|
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
|
2017-04-03 20:33:18 +00:00
|
|
|
import { MyApp } from './app.component';
|
2017-04-30 14:55:15 +00:00
|
|
|
import { HomePage } from '../pages/home/home';
|
2017-04-03 20:33:18 +00:00
|
|
|
import { StatusBar } from '@ionic-native/status-bar';
|
|
|
|
import { SplashScreen } from '@ionic-native/splash-screen';
|
2017-04-30 14:55:15 +00:00
|
|
|
import { ActionSheet, ActionSheetOptions } from '@ionic-native/action-sheet';
|
|
|
|
import { Toast } from "@ionic-native/toast";
|
|
|
|
import { HttpModule } from '@angular/http';
|
|
|
|
import 'rxjs/add/operator/map';
|
|
|
|
import 'rxjs/add/operator/toPromise';
|
|
|
|
import { UnitCreateModule } from "../pages/unit/unit-create/unit-create.module";
|
2017-04-19 21:04:41 +00:00
|
|
|
|
2017-04-30 14:55:15 +00:00
|
|
|
import { UnitListPageModule } from "../pages/unit/unit-list-page/unit-list-page.module";
|
2017-04-08 20:32:14 +00:00
|
|
|
|
2017-04-07 00:17:25 +00:00
|
|
|
|
2017-04-03 20:33:18 +00:00
|
|
|
|
2017-04-30 14:55:15 +00:00
|
|
|
|
|
|
|
import { SQLite } from "@ionic-native/sqlite";
|
2017-05-07 01:52:52 +00:00
|
|
|
import { SQLjsObject, SQLjs } from "../providers/SQLjsDriver/SQLjs.service";
|
2017-04-30 14:55:15 +00:00
|
|
|
import { DaoUnit } from "../providers/dao/dao-unit.service";
|
|
|
|
import { StartService } from "../providers/start/start-service.service";
|
|
|
|
import { DaoProduct } from "../providers/dao/dao-product.service";
|
|
|
|
import { ProductCreatePageModule } from "../pages/product/product-create-page/product-create-page.module";
|
|
|
|
import { ProductListPageModule } from "../pages/product/product-list-page/product-list-page.module";
|
2017-04-30 21:13:47 +00:00
|
|
|
import { MarketListPage } from "../pages/market/market-list-page/market-list-page";
|
|
|
|
import { MarketCreatePage } from "../pages/market/market-create-page/market-create-page";
|
|
|
|
import { MarketCreatePageModule } from "../pages/market/market-create-page/market-create-page.module";
|
|
|
|
import { MarketListPageModule } from "../pages/market/market-list-page/market-list-page.module";
|
|
|
|
import { DaoMarket } from "../providers/dao/dao-market.service";
|
2017-05-01 17:19:18 +00:00
|
|
|
import { ListItemListPageModule } from "../pages/listitem/list-item-list-page/list-item-list-page.module";
|
|
|
|
import { DaoListItem } from "../providers/dao/dao-listitem.service";
|
|
|
|
import { ListItemCreatePageModule } from "../pages/listitem/list-item-create-page/list-item-create-page.module";
|
2017-04-30 14:55:15 +00:00
|
|
|
|
|
|
|
|
2017-04-03 20:33:18 +00:00
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
2017-05-01 17:19:18 +00:00
|
|
|
MyApp, HomePage,
|
2017-04-03 20:33:18 +00:00
|
|
|
],
|
|
|
|
imports: [
|
2017-05-01 17:19:18 +00:00
|
|
|
BrowserModule, IonicModule.forRoot(MyApp), UnitListPageModule, HttpModule, ListItemListPageModule,ListItemCreatePageModule,
|
2017-04-30 21:13:47 +00:00
|
|
|
UnitCreateModule, ProductListPageModule, ProductCreatePageModule, MarketListPageModule, MarketCreatePageModule
|
2017-04-03 20:33:18 +00:00
|
|
|
],
|
|
|
|
bootstrap: [IonicApp],
|
|
|
|
entryComponents: [
|
2017-05-01 17:19:18 +00:00
|
|
|
MyApp, HomePage,],
|
2017-04-03 20:33:18 +00:00
|
|
|
providers: [
|
2017-05-07 01:52:52 +00:00
|
|
|
StatusBar, SplashScreen, ActionSheet, DaoUnit, StartService, SQLite, Toast, DaoProduct, DaoMarket, DaoListItem, SQLjs, SQLjsObject,
|
2017-04-07 00:17:25 +00:00
|
|
|
{ provide: ErrorHandler, useClass: IonicErrorHandler }
|
2017-04-03 20:33:18 +00:00
|
|
|
]
|
|
|
|
})
|
2017-04-07 00:17:25 +00:00
|
|
|
export class AppModule { }
|