0

I have this material component in Angular 15.

              <mat-form-field appearance="outline">
                <mat-label>{{'DOCTOR_AREA.START_TIME' | translate}} </mat-label>
                <input type="time" matInput  min="08:00" max="20:00" id="StartTime" formControlName="StartTime" [(ngModel)]="currentSlot.StartTime"/>
              </mat-form-field>

I need to insert a minute gap of 30 minutes.

How can I do?

1 Answers1

0

You need to add step attribute with value of 1800 seconds:

<mat-form-field appearance="outline">
  <mat-label>{{'DOCTOR_AREA.START_TIME' | translate}} </mat-label>
    <input type="time" matInput min="08:00" max="20:00" step="1800" id="StartTime" formControlName="StartTime" [(ngModel)]="currentSlot.StartTime"/>
</mat-form-field>
msrumon
  • 1,250
  • 1
  • 10
  • 27