• Overview
@angular/forms

SetDisabledStateOption

Type Alias

The type for CALL_SET_DISABLED_STATE. If always, then ControlValueAccessor will always call setDisabledState when attached, which is the most correct behavior. Otherwise, it will only be called when disabled, which is the legacy behavior for compatibility.

API

  
    type SetDisabledStateOption = 'whenDisabledForLegacyCode' | 'always'
  
  
Jump to details