angular/goldens/public-api/forms/errors.api.md
arturovt dc9581469f docs: add documentation for NG1002
Adds a documentation page for the NG01002 runtime error thrown by
FormGroup and FormArray when setValue is called with a value that is
missing an entry for one or more registered controls.

The error code is also changed from positive (1002) to negative (-1002)
so that Angular appends a link to the error reference page in dev mode,
consistent with how other documented errors (e.g. NG01101, NG01203) are
handled.

(cherry picked from commit 030422850b)
2026-04-10 10:54:46 +03:00

47 lines
1.3 KiB
Markdown

## API Report File for "forms_errors"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
// @public
export const enum RuntimeErrorCode {
// (undocumented)
COMPAREWITH_NOT_A_FN = 1201,
// (undocumented)
FORM_ARRAY_NAME_MISSING_PARENT = 1054,
// (undocumented)
FORM_CONTROL_NAME_INSIDE_MODEL_GROUP = 1051,
// (undocumented)
FORM_CONTROL_NAME_MISSING_PARENT = 1050,
// (undocumented)
FORM_GROUP_MISSING_INSTANCE = 1052,
// (undocumented)
FORM_GROUP_NAME_MISSING_PARENT = 1053,
// (undocumented)
MISSING_CONTROL = 1001,
// (undocumented)
MISSING_CONTROL_VALUE = -1002,
// (undocumented)
NAME_AND_FORM_CONTROL_NAME_MUST_MATCH = 1202,
// (undocumented)
NG_MISSING_VALUE_ACCESSOR = -1203,
// (undocumented)
NG_VALUE_ACCESSOR_NOT_PROVIDED = 1200,
// (undocumented)
NGMODEL_IN_FORM_GROUP = 1350,
// (undocumented)
NGMODEL_IN_FORM_GROUP_NAME = 1351,
// (undocumented)
NGMODEL_WITHOUT_NAME = 1352,
// (undocumented)
NGMODELGROUP_IN_FORM_GROUP = 1353,
// (undocumented)
NO_CONTROLS = 1000,
// (undocumented)
WRONG_VALIDATOR_RETURN_TYPE = -1101
}
// (No @packageDocumentation comment for this package)
```