1
resposta

Desafio ADD recurso data material

<mat-form-field class="input-container">
        <mat-label>Data Ida</mat-label>
        <input matInput [matDatepicker]="picker2">
        <mat-datepicker-toggle matIconSuffix [for]="picker2"></mat-datepicker-toggle>
        <mat-datepicker touchUi #picker2></mat-datepicker>
      </mat-form-field>


      <mat-form-field  class="input-container" >
        <mat-label>Data Volta</mat-label>
        <input  matInput [matDatepicker]="picker2">
        <mat-datepicker-toggle  matIconSuffix [for]="picker2"></mat-datepicker-toggle>
        <mat-datepicker  touchUi #picker2></mat-datepicker>
      </mat-form-field>

scss

.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
    padding-right: 0 !important;
    border: 0.5px solid #000 !important;
    border-radius: 10px !important;
  }

app.module

imports: [
    MatInputModule,
    MatDatepickerModule,
    MatNativeDateModule,
    MatMomentDateModule,
  ],
1 resposta

Curtiu usar o Angular Material, Edvan? :)