docs: FormArrayDirective mentions

This commit is contained in:
cexbrayat 2025-11-14 14:16:47 +01:00 committed by Jessica Janiuk
parent 81bd455de8
commit b0dd813664
2 changed files with 3 additions and 3 deletions

View file

@ -131,12 +131,12 @@ export const formArrayNameProvider: any = {
*
* Syncs a nested `FormArray` to a DOM element.
*
* This directive is designed to be used with a parent `FormGroupDirective`/`FormGroupArray` (selector:
* This directive is designed to be used with a parent `FormGroupDirective`/`FormArrayDirective` (selector:
* `[formGroup]`/`[formArray]`).
*
* It accepts the string name of the nested `FormArray` you want to link, and
* will look for a `FormArray` registered with that name in the parent
* `FormGroup`/`FormArray` instance you passed into `FormGroupDirective`/`FormGroupArray`.
* `FormGroup`/`FormArray` instance you passed into `FormGroupDirective`/`FormArrayDirective`.
*
* @see [Reactive Forms Guide](guide/forms/reactive-forms)
* @see {@link AbstractControl}

View file

@ -20,7 +20,7 @@ import {
export function controlParentException(nameOrIndex: string | number | null): Error {
return new RuntimeError(
RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT,
`formControlName must be used with a parent formGroup or formArray directive. You'll want to add a formGroup/formArray
`formControlName must be used with a parent formGroup or formArray directive. You'll want to add a formGroup/formArray
directive and pass it an existing FormGroup/FormArray instance (you can create one in your class).
${describeFormControl(nameOrIndex)}