Can't bind to 'clearUnselected' since it isn't a known property of 'ng2-completer'.
Simple example as described in README works fine:
<ng2-completer [(ngModel)]="customerName" [datasource]="completerData" [minSearchLength]="0" [autoMatch]="true" (selected)="onSelected($event)"></ng2-completer>
But when I add 'clearUnselected' attribute, I'm getting template parse errors: Can't bind to 'clearUnselected' since it isn't a known property of 'ng2-completer'.
<ng2-completer [(ngModel)]="customerName" [datasource]="completerData" [minSearchLength]="0" [clearUnselected]="true" [autoMatch]="true" (selected)="onSelected($event)"></ng2-completer>
Similar Error when I add 'openOnClick' attribute.
I got the same issue
<ng2-completer [(ngModel)]="selectedCustomer" [datasource]="customerCompleter"
(selected)="saveCustomer($event)" [minSearchLength]="0"
[textNoResults]="'No patient found'" [textSearching]="'Wait...'"
[openOnFocus]="true"></ng2-completer>
With clearSelected instead of openOnFocus, it works well though, and like @hadarweiss it doesn't work with openOnClick either. Some of the attributes work and others won't.
I followed the installation except for the System.js configuration (I currently use webpack, maybe I'm missing something when binding ng2-completer ?)
I'm also seeing this error: Can't bind to 'openOnClick' since it isn't a known property of 'ng2-completer'. Did this work for you?
uninstall and reinstall ng2-completer
@dieyne had the same issue that disappeared by reinstalling.