Ngx-chips: Lettable Operators support

Created on 7 Nov 2017  路  9Comments  路  Source: Gbuomprisco/ngx-chips

Please provide Lettable Operators support.

I use last 1.5.9 v. and this issue is still existing.
To work without an error:

ERROR TypeError: this.tagInput.onTextChange.debounceTime is not a function
 ...

I have to make an additional imports by myself:

import 'rxjs/add/operator/map';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/debounceTime';

I have just upgraded my app to Angular 5 and I am going to remove all operators like: import 'rxjs/add/operator/...'; and use Lettable Operators but I still want to use ngx-chips.

So my issue is fixing that and make ngx-chips up to date, because I really like this library and it is very comfortable in use. Thanks!

Most helpful comment

Works for me with RxJS 5.5.2 when I added to the component:

import 'rxjs/add/operator/debounceTime';
import 'rxjs/add/operator/filter';

Thanks to @Gbuomprisco for this great lib!

All 9 comments

+1. Also, for some reason I have to import

import 'rxjs/add/operator/debounceTime';
import 'rxjs/add/operator/first';
import 'rxjs/add/operator/filter';

without 'rxjs/add/operator/map' (I don't import it anywhere else)

For some reason = I forgot to add them to one of the files :)

HI, in v 1.5.10 I import first too, which should be the only one not imported. Can you guys confirm?

I get the error in v1.5.10
this.tagInput.onTextChange.asObservable(...).debounceTime is not a function

What rxjs version are you using?

I have the same problem with v1.5.11 and Angular 5, AngularCli 1.5.2 and Rxjs 5.5.2)

Rx 5.5.x is definitely not supported at this time

Works for me with RxJS 5.5.2 when I added to the component:

import 'rxjs/add/operator/debounceTime';
import 'rxjs/add/operator/filter';

Thanks to @Gbuomprisco for this great lib!

@Gbuomprisco Any estimates when Rx 5.5 will be supported?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shinzah picture Shinzah  路  3Comments

altschuler picture altschuler  路  3Comments

DevInstinct picture DevInstinct  路  4Comments

sivamamidi-REISys picture sivamamidi-REISys  路  3Comments

manilsson picture manilsson  路  4Comments