Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tell Angular our component is a ControlValueAccessor
import { Component, forwardRef } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
@Component({
providers: [{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => TagsComponent),
multi: true
}]
}) export class TagsComponent {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment