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