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.