<form [formGroup]="form">
<div *ngIf="!datep">
  <mat-form-field>
    <div class="date_input">
      <input matInput [matDatepicker]="picker" formControlName="date" [readonly]='datep' />
      <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
      <mat-datepicker #picker></mat-datepicker>
    </div>
  </mat-form-field>
</div>

  <div *ngIf="datep">
    <label for="">{{ pick }}</label>
  </div>
</form>
