ng2-completer icon indicating copy to clipboard operation
ng2-completer copied to clipboard

Can't bind to 'clearUnselected' since it isn't a known property of 'ng2-completer'.

Open hadarweiss opened this issue 8 years ago • 4 comments

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.

hadarweiss avatar Jul 19 '17 11:07 hadarweiss

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 ?)

Iwerzhon avatar Jul 26 '17 16:07 Iwerzhon

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?

malchijah avatar Aug 22 '17 01:08 malchijah

uninstall and reinstall ng2-completer

basaltedr avatar Nov 15 '17 09:11 basaltedr

@dieyne had the same issue that disappeared by reinstalling.

hzitoun avatar May 24 '18 14:05 hzitoun