Skip to content

Instantly share code, notes, and snippets.

@jcamilom
Created September 18, 2020 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcamilom/dbac5b42d769673cd702392595b33619 to your computer and use it in GitHub Desktop.
Save jcamilom/dbac5b42d769673cd702392595b33619 to your computer and use it in GitHub Desktop.
import { Component, forwardRef } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
@Component({
selector: 'multi-check-field',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => MultiCheckFieldComponent),
multi: true
}
]
})
export class MultiCheckFieldComponent { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment