From 42c0fe6c9b3926e75f0cbc5715b28c7af9a6e68b Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 22 Jul 2017 11:12:30 +0200 Subject: [PATCH] Add schedule module. --- src/app.module.ts | 2 ++ src/scheduler/schedule.module.ts | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/scheduler/schedule.module.ts diff --git a/src/app.module.ts b/src/app.module.ts index 5fbb5b1..4083165 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -16,6 +16,7 @@ import { ToastrModule } from 'ngx-toastr'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { AccountModule } from './accounts/account.module'; +import { ScheduleModule } from './scheduler/schedule.module'; import { ApiBaseURL, LogLevel } from './app.config'; @NgModule({ @@ -24,6 +25,7 @@ import { ApiBaseURL, LogLevel } from './app.config'; BrowserAnimationsModule, UpgradeModule, AccountModule, + ScheduleModule, NgLoggerModule.forRoot(LogLevel), RestangularModule.forRoot((RestangularProvider) => { RestangularProvider.setBaseUrl(ApiBaseURL); diff --git a/src/scheduler/schedule.module.ts b/src/scheduler/schedule.module.ts new file mode 100644 index 0000000..a7a24c7 --- /dev/null +++ b/src/scheduler/schedule.module.ts @@ -0,0 +1,34 @@ +// 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 { NgbModule } from '@ng-bootstrap/ng-bootstrap'; +import { ToastrModule } from 'ngx-toastr'; + +import { ScheduleService } from './schedule.service'; +import { ScheduleDeleteModalComponent } from './scheduleDeleteModal.component'; + +@NgModule({ + imports: [ + HttpModule, + CommonModule, + FormsModule, + NgLoggerModule, + ToastrModule, + NgbModule + ], + providers: [ + ScheduleService + ], + declarations: [ + ScheduleDeleteModalComponent + ], + entryComponents: [ + ScheduleDeleteModalComponent + ] +}) +export class ScheduleModule {}