FormsModule
ngmodule
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
withConfig()
|
|||
---|---|---|---|
Provides options for configuring the template-driven forms module. |
|||
|
opts |
object |
An object of configuration options
|
Returns
Providers
Provider |
---|
RadioControlRegistry |
Directives
Name | Description |
---|---|
CheckboxControlValueAccessor |
A |
CheckboxRequiredValidator |
A Directive that adds the |
DefaultValueAccessor |
The default |
EmailValidator |
A directive that adds the |
MaxLengthValidator |
A directive that adds max length validation to controls marked with the |
MinLengthValidator |
A directive that adds minimum length validation to controls marked with the |
NgControlStatus |
Directive automatically applied to Angular form controls that sets CSS classes based on control status. |
NgControlStatusGroup |
Directive automatically applied to Angular form groups that sets CSS classes based on control status (valid/invalid/dirty/etc). |
NgForm |
Creates a top-level |
NgFormSelectorWarning |
Deprecated: in Angular v6 and will be removed in Angular v9. This directive is solely used to display warnings when the deprecated |
NgModel |
Creates a |
NgModelGroup |
Creates and binds a |
NgSelectOption |
Marks |
PatternValidator |
A directive that adds regex pattern validation to controls marked with the |
RadioControlValueAccessor |
The |
RequiredValidator |
A directive that adds the |
SelectControlValueAccessor |
The |
SelectMultipleControlValueAccessor |
The |
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/forms/FormsModule