我想启用和禁用输入字段取决于布尔值。但它不起作用。
<md-checkbox (change)="triggerSomeEvent()" [checked]="d.checked" [(ngModel)]="d.checked" formControlName="checked" >{{d.day}}</md-checkbox>
<input type="time" class="custome-text-input" [(ngModel)]="d.hoursofoperationto" formControlName="hoursofoperationto" [required]="days[i].checked" [disabled]="isDisabled">
isDisabled = true;
triggerSomeEvent(): void {
this.isDisabled = !this.isDisabled;
}