Add schedule module.

This commit is contained in:
Alexis Lahouze 2017-07-22 11:12:30 +02:00
parent c257069644
commit 42c0fe6c9b
2 changed files with 36 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import { ToastrModule } from 'ngx-toastr';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AccountModule } from './accounts/account.module'; import { AccountModule } from './accounts/account.module';
import { ScheduleModule } from './scheduler/schedule.module';
import { ApiBaseURL, LogLevel } from './app.config'; import { ApiBaseURL, LogLevel } from './app.config';
@NgModule({ @NgModule({
@ -24,6 +25,7 @@ import { ApiBaseURL, LogLevel } from './app.config';
BrowserAnimationsModule, BrowserAnimationsModule,
UpgradeModule, UpgradeModule,
AccountModule, AccountModule,
ScheduleModule,
NgLoggerModule.forRoot(LogLevel), NgLoggerModule.forRoot(LogLevel),
RestangularModule.forRoot((RestangularProvider) => { RestangularModule.forRoot((RestangularProvider) => {
RestangularProvider.setBaseUrl(ApiBaseURL); RestangularProvider.setBaseUrl(ApiBaseURL);

View File

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