123456789101112131415161718192021 |
- import { forwardRef } from '@angular/core';
- import { ControlContainer, FormGroupDirective, NG_VALUE_ACCESSOR } from '@angular/forms';
- export const provideValueAccessor = (component) => ({
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => component),
- multi: true,
- });
- export const provideControlContainer = () => ({
- provide: ControlContainer,
- useExisting: FormGroupDirective,
- });
|