Initialize Operation module.

This commit is contained in:
Alexis Lahouze 2017-07-27 13:57:40 +02:00
parent ac0aa056cf
commit 863160881f
2 changed files with 23 additions and 0 deletions

View File

@ -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);

View File

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