Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to set disabled flag formgroup angular

this.form.controls['name'].disable();

// or

<input formControlName="id" placeholder="ID" [attr.disabled]="true"></input>
 
PREVIOUS NEXT
Tagged: #set #disabled #flag #formgroup #angular
ADD COMMENT
Topic
Name
9+5 =