Hi, i wrote that is worked, but not. The line 
switchMap(t => Observable.timer(5000, 5000)))
says Property timer does not exist on type ' typeof Observable


Em quarta-feira, 29 de julho de 2020 12:25:10 UTC-3, Paulo Silva escreveu:
>
> I got this code below
> resetTimer$ = new Subject();
>
>   ngOnInit() {
>     this.resetTimer$
>       startWith(null)
>       .takeUntil(this.destroyed$)
>       .switchMap(t => Observable.timer(5000, 5000))
>       .subscribe(() => this.next())
>   }
>
> I'm using  Angular 10 and i'm getting this error:
>
>> startWith does not exist on type Subject<unknow>
>
>
> How can i solve this problem? 
>
>

-- 
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 angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/86fff28d-ecbb-4428-a5ad-2896aa61fb20o%40googlegroups.com.

Reply via email to