I have 3 fields: execution date, start date, and end date. These last two can not be larger than my execution date so I want to have the datepicker disable for these two fields the selection of dates after the execution date. How do I do? My code:
<div class="form-group" [formGroup]="form"
<label>Data de execução</label>
<datetime formControlName="dataExecucao" [(ngModel)]="dataExecucao" [(datepicker)]="datepickerOpts" [timepicker]="false"></datetime>
</div>
</div>
<div>
<div class="form-group" [formGroup]="form"
<label>Data inicial</label>
<datetime formControlName="dataInicial" [(ngModel)]="dataInicial" [(datepicker)]="datepickerOpts" [timepicker]="false"></datetime>
</div>
</div>
<div class="form-group" [formGroup]="form"
<label>Data final</label>
<datetime formControlName="dataFinal" [(ngModel)]="dataFinal" [(datepicker)]="datepickerOpts" [timepicker]="false"></datetime>
</div>