mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: FormArrayDirective mentions
This commit is contained in:
committed by
Jessica Janiuk
parent
81bd455de8
commit
b0dd813664
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user