Is there a way in angular to check whether a form control is disabled ?
this.form.get("nationality").disable()
disabled this control.
Can i check whether this control is disable on reset method. If its disabled , don't need to reset the value.
How can I check that.
onReset(){
if(this.form.get("nationality").isDisable()){// its wrong
let name =this.form.get("nationality").value;
}else{
let name = null;
}
this.form.reset({
name: name
});
}