mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b2f08574e8
Update `NgControl` to support binding to custom controls via the new `ngControlCreate` and `ngControlUpdate` lifecycle hooks. This will allow Reactive and Template-driven forms to integrate with components that use the new `FormValueControl` (FVC) binding convention. Key changes: - Implement synchronization of control state between `FormControl` and custom controls. - Add support for `parseErrors` signals from custom controls, integrating them into the Reactive Forms validation loop via a dynamic validator. - Convert Reactive Forms errors into `ReactiveValidationError` objects for consumption by custom controls. - Update `NgModel`, `FormControlDirective`, and `FormControlName` to provide necessary dependencies (`Injector`, `Renderer2`) to `NgControl`. - Rename `setUpControl` to `setUpControlValueAccessor` to clarify its role in the traditional CVA path.
public-api/
This directory contains all of the public api goldens for our npm packages we publish to NPM. These are tested on all PRs and commits as part of our bazel tests.
To check or update the public api goldens, run one of the following commands:
pnpm public-api:check
pnpm public-api:update