Skip to content

Instantly share code, notes, and snippets.

@Dyljyn
Dyljyn / sync-control.directive.ts
Last active August 2, 2021 12:09
Syncing reactive form controls - Angular (v6)
import {
Directive,
EventEmitter,
InjectFlags,
Injector,
OnDestroy,
OnInit,
Type
} from '@angular/core';
import { AbstractControl, FormControlDirective, FormControlName } from '@angular/forms';