formDirectives top-level constant

List<Type> const formDirectives

A list of all the form directives used as part of a @Component annotation.

This is a shorthand for importing them each individually.

Example

@Component(
  selector: 'my-app',
  directives: const [formDirectives]
)
class MyApp {}

Implementation

const List<Type> formDirectives = [
  NgControlName,
  NgControlGroup,
  NgFormControl,
  NgModel,
  NgFormModel,
  NgForm,
  MemorizedForm,
  NgSelectOption,
  DefaultValueAccessor,
  NumberValueAccessor,
  CheckboxControlValueAccessor,
  SelectControlValueAccessor,
  RadioControlValueAccessor,
  RequiredValidator,
  MinLengthValidator,
  MaxLengthValidator,
  PatternValidator
];