How I can disabled input inside Angular?
Hi Thy Nguyen
To disable an input in Angular, you can use the disabled attribute binding. Here's how you can do it:
If you are using template-driven forms, you can use the ngModel directive along with the disabled attribute:
<input type="text" [(ngModel)]="myValue" [disabled]="isDisabled" />
isDisabled = false;
myForm.get("myControl").disable();
myForm.get("myControl").enable();