FormsModule
Exports the required providers and directives for template-driven forms, making them available for import by NgModules that import this module.
API
class FormsModule {
static withConfig(opts: { callSetDisabledState?: SetDisabledStateOption | undefined; }): ModuleWithProviders<FormsModule>;
}
withConfig
ModuleWithProviders<FormsModule>Provides options for configuring the forms module.
@paramopts
{ callSetDisabledState?: SetDisabledStateOption | undefined; }An object of configuration options
-
callSetDisabledStateConfigures whether toalwayscallsetDisabledState, which is more correct, or to only call itwhenDisabled, which is the legacy behavior.
@returns
ModuleWithProviders<FormsModule>
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/FormsModule