[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/forms/FormsModule [Back]  [Original]

FormsModule Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/forms

FormsModule

NgModule
stable

Exports the required providers and directives for template-driven forms, making them available for import by NgModules that import this module.

Forms OverviewTemplate-driven Forms Guide

On this page

    arrow_upward_alt Back to the top

    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

    • callSetDisabledState Configures whether to always call setDisabledState, which is more correct, or to only call it whenDisabled, which is the legacy behavior.
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page