FormsModule · Angular
@angular/forms
FormsModule
NgModule stable View sourceExports the required providers and directives for template-driven forms, making them available for import by NgModules that import this module.
API
class FormsModule {
}
withConfig
ModuleWithProviders<FormsModule>
Provides options for configuring the forms module.
@param opts{ 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.
ModuleWithProviders<FormsModule>