diff --git a/src/scheduler/schedule.module.ts b/src/scheduler/schedule.module.ts index d66145b..a6b980f 100644 --- a/src/scheduler/schedule.module.ts +++ b/src/scheduler/schedule.module.ts @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { FormsModule } from '@angular/forms'; +import { ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { RouterModule } from '@angular/router'; @@ -23,7 +23,7 @@ import { ScheduleListState } from './schedule.states'; imports: [ HttpClientModule, CommonModule, - FormsModule, + ReactiveFormsModule, RouterModule.forChild([ ScheduleListState ]), diff --git a/src/scheduler/scheduleEditModal.component.ts b/src/scheduler/scheduleEditModal.component.ts index 98258f8..02ef752 100644 --- a/src/scheduler/scheduleEditModal.component.ts +++ b/src/scheduler/scheduleEditModal.component.ts @@ -1,10 +1,10 @@ // vim: set tw=80 ts=2 sw=2 sts=2: -import { Component, Input } from '@angular/core'; -import { NgForm } from '@angular/forms'; +import { Component, Input, ViewChild } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { Schedule } from './schedule'; +import { ScheduleFormComponent } from './scheduleForm.component'; @Component({ selector: 'schedule-edit-modal', @@ -14,11 +14,11 @@ import { Schedule } from './schedule';