Hello fooks,

I have a strange problem with implementing CheckboxControlValueAccessor.
Typescript keep complaining:


Class 'CheckboxComponent' incorrectly implements interface 
'CheckboxControlValueAccessor'.
  Types have separate declarations of a private property '_renderer'.

I thought I implemented it correctly with the following code:

export class CheckboxComponent extends BaseElementComponent implements 
CheckboxControlValueAccessor {

  /**
   * Set the checked property of the checkbox
   */
  @Input() checked: boolean;

  /**
   * Reference to the input field
   */
  @ViewChild('checkboxElement') checkboxElement;

  private _elementRef;

  private onTouched;

  /**
   * Public constructor
   * @param {Renderer} _renderer
   */
  constructor(private _renderer: Renderer2, _elementRef: ElementRef) {
    super();
  }



Is er iemand die tegen hetzelfde probleem aanloopt? Of iemand die me een 
goed voorbeeld kan geven zodat ik CheckboxControlValueAccessor kan 
implementeren?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to