I have a disabled ngBootstrap datepicker. How can I disable this conditionally based on the value of a variable I have, hasExistingEnrollmentPeriods?
I've tried disabled="hasExistingEnrollmentPeriods" but that always sets disabled to true even when the expression is false.
<input class="form-control" placeholder="MM-DD-YYYY" name="effecDate" ngbDatepicker #ed="ngbDatepicker"
(click)="ed.toggle(); DetectChange()" (ngModelChange)="onSelectEffectiveDate($event)" formControlName="effectiveDate" disabled>
<div class="input-group-append">
<button class="btn btn-outline-secondary calendar" (click)="ed.toggle()" type="button">
<i class="fal fa-calendar-alt"></i>
</button>
</div>