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

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

FormControlOptions

interface
stable

Interface for options provided to a FormControl.

On this page

    arrow_upward_alt Back to the top

    API

        
          interface FormControlOptions extends AbstractControlOptions {  nonNullable?: boolean | undefined;  initialValueIsDefault?: boolean | undefined;  override validators?: ValidatorFn | ValidatorFn[] | null | undefined;  override asyncValidators?: AsyncValidatorFn | AsyncValidatorFn[] | null | undefined;  override updateOn?: "change" | "blur" | "submit" | undefined;}
        
        

    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.

    Description

    Interface for options provided to a FormControl.

    This interface extends all options from AbstractControlOptions, plus some options unique to FormControl.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page