Answers for "mat input disabled"

1

mat input disabled

<mat-form-field>
    <input matInput [formControl]="inputFormControl"/>
</mat-form-field>

class YourComponent {
    inputFormControl = new FormControl({ value: null, disabled: true });
    
    this.inputFormControl.disable();
    this.inputFormControl.enable();
}
Posted by: Guest on April-08-2021

Browse Popular Code Answers by Language