I implemented a really simple form to choose a range of time as the one in the code below:
<form [formGroup]="editEventForm" (ngSubmit)="c(onSubmitUpdate())">
<div class="form-group bottom-form-details">
<div class="row">
<div class="col-sm-6">
<label class="labels-status-form">Start Time</label>
</div>
<div class="col-sm-6">
<ngb-timepicker [(ngModel)]="startTime" formControlName="startTime"></ngb-timepicker>
</div>
</div>
</div>
<div class="form-group bottom-form-details">
<div class="row">
<div class="col-sm-6">
<label class="labels-status-form">End Time</label>
</div>
<div class="col-sm-6">
<ngb-timepicker [(ngModel)]="endTime" formControlName="endTime"></ngb-timepicker>
</div>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary btn-5">Update</button>
<button type="button" class="btn btn-outline-dark" (click)="c('Close click')">Close</button>
</div>
</form>
The models startTime and endTime just get the current hour and the current minute.
Once I set the start time(hour and minutes) through ngb-timepicker I would like to set end time from the start time. i.e. if I set 05:30 as start time I would like to set end time from 05:31.
ngb-datepicker provides a [minDate] but it is not the case with ngb-timepicker. Is there any way to do that in Angular 4?
Thanks in advance.