angular-material-components
angular-material-components copied to clipboard
setHours is not a function
It works but it outputs tons of console errors about setHours is not a function
Probably you forgot to convert something to a Date object.
component.html:
<ngx-mat-timepicker #picker formControlName="scheduleTimeFormControl" [enableMeridian]="true">
</ngx-mat-timepicker>
component.ts
ngOnInit(): void {
this.setupForm();
}
setupForm(): void {
this.schedulingFormGroup = new FormGroup({
daySelectFormControl: new FormControl('', [Validators.required]),
scheduleTimeFormControl: new FormControl('', [Validators.required])
});
}
@thavus Can you let me know which version you used please ?