Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
date-picker.component.html
<mat-form-field>
<input
matInput
[matDatepicker]="picker"
[disabled]="isDisabled"
[value]="date"
[min]="minDate"
[max]="maxDate"
(dateChange)="onDateChange($event)"
[formControl]="formControl"
[errorStateMatcher]="dateErrorStateMatcher"
[placeholder]="placeholder"
/>
<mat-error>{{ errorMessage }}</mat-error>
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
<mat-datepicker #picker></mat-datepicker>
</mat-form-field>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.