• Overview
@angular/forms

FormControlOptions

interface

Interface for options provided to a FormControl.

  
    interface FormControlOptions extends AbstractControlOptions {}
  
  

nonNullable

boolean | undefined

Whether to use the initial value used to construct the FormControl as its default value as well. If this option is false or not provided, the default value of a FormControl is null. When a FormControl is reset without an explicit value, its value reverts to its default value.

initialValueIsDefault

boolean | undefined
@deprecated

Use nonNullable instead.

validators

ValidatorFn | ValidatorFn[] | null | undefined

The list of validators applied to a control.

asyncValidators

AsyncValidatorFn | AsyncValidatorFn[] | null | undefined

The list of async validators applied to control.

updateOn

"change" | "blur" | "submit" | undefined

The event name for control to update upon.

Jump to details