FormsModule
Exports the required providers and directives for template-driven forms, making them available for import by NgModules that import this module.
class FormsModule {
static withConfig(opts: { warnOnDeprecatedNgFormSelector?: "never" | "once" | "always"; }): ModuleWithProviders<FormsModule>
}
See also
Static methods
Provides options for configuring the template-driven forms module. |
|||
Parameters
Returns |
Providers
Provider |
---|
|
Directives
Name | Description |
---|---|
|
A |
|
A Directive that adds the |
|
The default |
|
A directive that adds the |
|
A directive that adds max length validation to controls marked with the
|
|
A directive that adds minimum length validation to controls marked with the
|
|
Directive automatically applied to Angular form controls that sets CSS classes based on control status. |
|
Directive automatically applied to Angular form groups that sets CSS classes based on control status (valid/invalid/dirty/etc). |
|
Creates a top-level |
|
Deprecated: in Angular v6 and will be removed in Angular v9. This directive is solely used to display warnings when the deprecated |
|
Creates a |
|
Creates and binds a |
|
Marks |
|
The |
|
A directive that adds regex pattern validation to controls marked with the
|
|
The |
|
The |
|
A directive that adds the |
|
The |
|
The |