ReactiveFormsModule
Exports the required infrastructure and directives for reactive forms, making them available for import by NgModules that import this module.
API
class ReactiveFormsModule {
static withConfig(opts: { warnOnNgModelWithFormControl?: "always" | "never" | "once" | undefined; callSetDisabledState?: SetDisabledStateOption | undefined; }): ModuleWithProviders<ReactiveFormsModule>;
}
withConfig
ModuleWithProviders<ReactiveFormsModule>Provides options for configuring the reactive forms module.
@paramopts
{ warnOnNgModelWithFormControl?: "always" | "never" | "once" | undefined; callSetDisabledState?: SetDisabledStateOption | undefined; }An object of configuration options
-
warnOnNgModelWithFormControlConfigures when to emit a warning when anngModelbinding is used with reactive form directives. -
callSetDisabledStateConfigures whether toalwayscallsetDisabledState, which is more correct, or to only call itwhenDisabled, which is the legacy behavior.
@returns
ModuleWithProviders<ReactiveFormsModule>
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/ReactiveFormsModule