Skip to content

Commit 7b1d27a

Browse files
committed
sample(pickers): add form modules to config
1 parent 58fedc1 commit 7b1d27a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

live-editing/configs/DatePickerConfigGenerator.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
12
import {IgxAutocompleteModule,
23
IgxButtonModule,
34
IgxCalendarModule,
@@ -123,19 +124,19 @@ export class DatePickerConfigGenerator implements IConfigGenerator {
123124
configs.push(new Config({
124125
component: 'DateTimePickerTDFSampleComponent',
125126
appModuleConfig: new AppModuleConfig({
126-
imports: ['DateTimePickerTDFSampleComponent', 'IgxDatePickerModule', 'IgxTimePickerModule'],
127+
imports: ['DateTimePickerTDFSampleComponent', 'IgxDatePickerModule', 'IgxTimePickerModule', 'FormsModule'],
127128
ngDeclarations: ['DateTimePickerTDFSampleComponent'],
128-
ngImports: ['IgxDatePickerModule', 'IgxTimePickerModule']
129+
ngImports: ['IgxDatePickerModule', 'IgxTimePickerModule', 'FormsModule']
129130
})
130131
}));
131132

132133
// date & time picker - reactive form
133134
configs.push(new Config({
134135
component: 'DateTimePickerRFSampleComponent',
135136
appModuleConfig: new AppModuleConfig({
136-
imports: ['DateTimePickerRFSampleComponent', 'IgxDatePickerModule', 'IgxTimePickerModule'],
137+
imports: ['DateTimePickerRFSampleComponent', 'IgxDatePickerModule', 'IgxTimePickerModule', 'ReactiveFormsModule'],
137138
ngDeclarations: ['DateTimePickerRFSampleComponent'],
138-
ngImports: ['IgxDatePickerModule', 'IgxTimePickerModule']
139+
ngImports: ['IgxDatePickerModule', 'IgxTimePickerModule', 'ReactiveFormsModule']
139140
})
140141
}));
141142

0 commit comments

Comments
 (0)