On this page
FormControlOptions
interface
Interface for options provided to a FormControl
.
interface FormControlOptions extends AbstractControlOptions {
initialValueIsDefault?: boolean
// inherited from forms/AbstractControlOptions
validators?: ValidatorFn | ValidatorFn[] | null
asyncValidators?: AsyncValidatorFn | AsyncValidatorFn[] | null
updateOn?: 'change' | 'blur' | 'submit'
}
Description
This interface extends all options from AbstractControlOptions
, plus some options unique to FormControl
.
Properties
Property | Description |
---|---|
initialValueIsDefault?: boolean |
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 |
© 2010–2022 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v13.angular.io/api/forms/FormControlOptions