Open thavus opened 2 years ago
It works but it outputs tons of console errors about setHours is not a function
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 ?
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:
component.ts