feat(forms): multiple validators for array method (#20766)
Change array method signature so that array of validator and/or async validatior functions can be passed. Fixes #20665 PR Close #20766
This commit is contained in:
2
tools/public_api_guard/forms/forms.d.ts
vendored
2
tools/public_api_guard/forms/forms.d.ts
vendored
@ -217,7 +217,7 @@ export declare class FormArrayName extends ControlContainer implements OnInit, O
|
||||
|
||||
/** @stable */
|
||||
export declare class FormBuilder {
|
||||
array(controlsConfig: any[], validator?: ValidatorFn | null, asyncValidator?: AsyncValidatorFn | null): FormArray;
|
||||
array(controlsConfig: any[], validator?: ValidatorFn | ValidatorFn[] | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null): FormArray;
|
||||
control(formState: any, validator?: ValidatorFn | ValidatorFn[] | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null): FormControl;
|
||||
group(controlsConfig: {
|
||||
[key: string]: any;
|
||||
|
Reference in New Issue
Block a user