Re: [AngularJS] startWith does not exist on type Subject

2020-07-29 Thread bastien lemaire
this.resetTimer$.pipe( startWith(), takeUntil(), ... ) *Bastien Lemaire* On Wed, 29 Jul 2020 at 17:25, Paulo Silva wrote: > I got this code below > resetTimer$ = new Subject(); > > ngOnInit() { > this.resetTimer$ > startWith(null) > .takeUntil(this.destroyed$) >

[AngularJS] startWith does not exist on type Subject

2020-07-29 Thread Paulo Silva
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: >