Skip to content

Commit ffbd81f

Browse files
committed
chore(daterange): Add FormsModule #5732
1 parent f8d9995 commit ffbd81f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Diff for: projects/igniteui-angular/src/lib/date-range-picker/date-range-picker.component.spec.ts

+11-10
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ describe('IgxDateRangePicker', () => {
495495
DateRangeDefaultComponent,
496496
DateRangeTwoInputsTestComponent
497497
],
498-
imports: [IgxDateRangePickerModule, IgxDateTimeEditorModule, IgxInputGroupModule, NoopAnimationsModule]
498+
imports: [IgxDateRangePickerModule, IgxDateTimeEditorModule, IgxInputGroupModule, NoopAnimationsModule, FormsModule]
499499
})
500500
.compileComponents();
501501
}));
@@ -680,18 +680,19 @@ export class DateRangeTestComponent implements OnInit {
680680
@Component({
681681
selector: 'igx-date-range-two-inputs-test',
682682
template: `
683-
<igx-date-range-picker [mode]="mode" [(ngModel)]="range">
684-
<igx-date-range-start>
685-
<input igxInput igxDateTimeEditor type="text" required>
686-
</igx-date-range-start>
687-
<igx-date-range-end>
688-
<input igxInput igxDateTimeEditor type="text" required>
689-
</igx-date-range-end>
690-
</igx-date-range-picker>
683+
<igx-date-range-picker [mode]="mode">
684+
<igx-date-range-start>
685+
<input igxInput igxDateTimeEditor type="text" [(ngModel)]="startDate" required>
686+
</igx-date-range-start>
687+
<igx-date-range-end>
688+
<input igxInput igxDateTimeEditor type="text" [(ngModel)]="endDate" required>
689+
</igx-date-range-end>
690+
</igx-date-range-picker>
691691
`
692692
})
693693
export class DateRangeTwoInputsTestComponent extends DateRangeTestComponent {
694-
public range = { start: new Date(), end: new Date(new Date().setDate(new Date().getDate() + 5)) };
694+
startDate = new Date(2020, 1, 1);
695+
endDate = new Date(2020, 1, 4);
695696
}
696697

697698
@Component({

0 commit comments

Comments
 (0)