• Overview
@angular/forms/signals

InteropNgControl

Class

A fake version of NgControl provided by the Control directive. This allows interoperability with a wider range of components designed to work with reactive forms, in particular ones that inject the NgControl. The interop control does not implement all properties and methods of the real NgControl, but does implement some of the most commonly used ones that have a clear equivalent in signal forms.

API

    
      class InteropNgControl implements Pick<NgControl, InteropSharedKeys | 'control' | 'valueAccessor'> ,Pick<AbstractControl<unknown>, InteropSharedKeys | 'hasValidator'> {}
    
    

constructor

InteropNgControl
@paramfield() => FieldState<unknown, string | number>

control

AbstractControl<any, any>

value

any

valid

boolean

invalid

boolean

pending

boolean | null

disabled

boolean

enabled

boolean

errors

any

pristine

boolean

dirty

boolean

touched

boolean

untouched

boolean

valueAccessor

any

hasValidator

boolean
@paramvalidatorValidatorFn
@returnsboolean

updateValueAndValidity

void
@returnsvoid
Jump to details