Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disable input angular

set isDisabled(value: boolean) {
 this._isDisabled = value;
 if(value) {
  this.form.controls['name'].disable();
 } else {
    this.form.controls['name'].enable();
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #input #angular
ADD COMMENT
Topic
Name
2+2 =