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
@returns
InteropNgControl
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
status
FormControlStatus
valueAccessor
any
hasValidator
boolean
@returns
boolean
updateValueAndValidity
void
@returns
void
Jump to details