mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: FormArrayDirective mentions
This commit is contained in:
parent
81bd455de8
commit
b0dd813664
2 changed files with 3 additions and 3 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue