this.resetTimer$.pipe( startWith(), takeUntil(), ... ) *Bastien Lemaire*
On Wed, 29 Jul 2020 at 17:25, Paulo Silva <[email protected]> wrote: > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/angular/109c97a1-9538-456b-9839-045e6240f2f9o%40googlegroups.com > <https://groups.google.com/d/msgid/angular/109c97a1-9538-456b-9839-045e6240f2f9o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/CAJ7E9zGX18f-3kz0VmOGDJP5Q-XtQwYy1g03NP1%2BWpRQM2GpjA%40mail.gmail.com.
