-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Milestone
Description
Documentation Feedback
Can you please add an example of using mat-datepicker with signal forms?
I tried to use it with a Date field, but I'm getting a typescript error:
Type 'Date' is not assignable to type 'string'.ngtsc(2322)
Typescript is saying that:
fieldis of typeField<Date>.field: InputSignal<FieldTree<Date, string | number>>reportForm.reportDateis of typeFieldTree<Date, string>(not sure where thestringcame from)
Simple form setup:
formModel = signal({
reportDate: new Date(),
});
reportForm = form(this.formModel);Affected documentation page
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Done