Quote from
Ingo on September 2, 2019, 9:10 am
Hi,
it exists in the material.module.ts
import { MatDatepickerModule } from '@angular/material/datepicker';
for use:
<mat-form-field floatLabel="auto" fxFlex>
<mat-label>{{'representative.DateOfJoining' | translate}}</mat-label>
<input matInput readonly [matDatepicker]="picker1" [formControl]="dateOfJoining" [max]="maxDate" required >
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
<mat-datepicker #picker1></mat-datepicker>
<mat-error *ngIf="dateOfJoining.hasError('required')">{{'representative.errors.DateOfJoiningRequired' | translate}}</mat-error>
</mat-form-field>
Hi,
it exists in the material.module.ts
import { MatDatepickerModule } from '@angular/material/datepicker';
for use:
<mat-form-field floatLabel="auto" fxFlex>
<mat-label>{{'representative.DateOfJoining' | translate}}</mat-label>
<input matInput readonly [matDatepicker]="picker1" [formControl]="dateOfJoining" [max]="maxDate" required >
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
<mat-datepicker #picker1></mat-datepicker>
<mat-error *ngIf="dateOfJoining.hasError('required')">{{'representative.errors.DateOfJoiningRequired' | translate}}</mat-error>
</mat-form-field>
Eben Monney has reacted to this post.