From 863160881f6c7e0570a2b12ee92f07b0fcdc2437 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 27 Jul 2017 13:57:40 +0200 Subject: [PATCH] Initialize Operation module. --- src/app.module.ts | 3 +++ src/operations/operation.module.ts | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/operations/operation.module.ts diff --git a/src/app.module.ts b/src/app.module.ts index ea4f6bc..b7af799 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -18,6 +18,8 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { AccountModule } from './accounts/account.module'; import { ScheduleModule } from './scheduler/schedule.module'; +import { OperationModule } from './operations/operation.module'; + import { ApiBaseURL, LogLevel } from './app.config'; @NgModule({ @@ -27,6 +29,7 @@ import { ApiBaseURL, LogLevel } from './app.config'; UpgradeModule, AccountModule, ScheduleModule, + OperationModule, NgLoggerModule.forRoot(LogLevel), RestangularModule.forRoot((RestangularProvider) => { RestangularProvider.setBaseUrl(ApiBaseURL); diff --git a/src/operations/operation.module.ts b/src/operations/operation.module.ts new file mode 100644 index 0000000..b30080d --- /dev/null +++ b/src/operations/operation.module.ts @@ -0,0 +1,20 @@ +// vim: set tw=80 ts=2 sw=2 sts=2 : + +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { HttpModule } from '@angular/http'; + +import { NgLoggerModule, Level } from '@nsalaun/ng-logger'; +import { RestangularModule } from 'ngx-restangular'; + +@NgModule({ + imports: [ + HttpModule, + CommonModule, + FormsModule, + NgLoggerModule, + RestangularModule, + ], +}) +export class OperationModule {}