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$)
>
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:
>