Angular 6 upgrade: debounceTime is not property of Subject

前端 未结 4 1679
旧时难觅i
旧时难觅i 2021-02-19 08:06

I am attempting to upgrade my app from Angular 5 to Angular 6. I followed the steps on the https://update.angular.io/ At least i think i did.

The Error is :

<         


        
4条回答
  •  自闭症患者
    2021-02-19 08:47

    Following the reactivex docs, you should also subscribe to the pipe observable :

    .pipe(
        debounceTime(500),
        distinctUntilChanged(),
        map((val) => {
            ...
        })
    )
    .subscribe();
    

    An Observable is called a “cold” Observable if it does not begin to emit items until an observer has subscribed to it.

提交回复
热议问题