Im using ngbDatepicker
and ng2-datepicker-jalali
. I use ngbDatepicker
directive like below:
<div class="input-group" dir="ltr">
<input class="form-control"
placeholder="yyyy/m/d"
name="dp"
[(ngModel)]="registerDate"
ngbDatepicker
[firstDayOfWeek] = "6"
[disabled]="disabled"
#d="ngbDatepicker" >
<button class="input-group-addon" (click)="d.toggle()" type="button">
<i class="fa fa-calendar"></i>
</button>
</div>
I'm trying to disable input to force select date from datepicker. [disabled]="disabled"
attr disables whole datepicker.