ReactiveFormsModule
NgModule
Exports the required infrastructure and directives for reactive forms, making them available for import by NgModules that import this module.
API
class ReactiveFormsModule {}
withConfig
Provides options for configuring the reactive forms module.
@paramopts
{ warnOnNgModelWithFormControl?: "always" | "never" | "once" | undefined; callSetDisabledState?: SetDisabledStateOption | undefined; }
An object of configuration options
warnOnNgModelWithFormControl
Configures when to emit a warning when anngModel
binding is used with reactive form directives.callSetDisabledState
Configures whether toalways
callsetDisabledState
, which is more correct, or to only call itwhenDisabled
, which is the legacy behavior.
@returns
ModuleWithProviders<ReactiveFormsModule>
Jump to details