Hey i have input date picker from angular material and i try to make the value disable and let the user choose only from the date picker Calendar and it doesn't work for me.
This is my input:
<p class="p-rtl">
<mat-form-field class="input-min" appearance="fill">
<mat-label>Finish Date</mat-label>
<input matInput [matDatepicker]="picker" placeholder="Choose a date" [formControl]="date">
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
<mat-datepicker #picker></mat-datepicker>
</mat-form-field>
</p>
The problem is that the user can insert bad inputs and i want to block the user for this inputs.
I try to google it and read reference and nothing not work for me.

<input disabled matInput [matDatepicker]="picker" placeholder="Choose a date" [formControl]="date">