How I can disabled input inside Angular?
Thanks a ton to get writing this sort of superb posting! I uncovered your web blog ideal for this demands. Contained in the grapefruit excellent plus handy discussions. Keep up to date favorable deliver the results!halloween panties
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();