You don't have to use RXJS.

https://stackblitz.com/edit/angular-ivy-2trhnm


Best Regards,



*Scott Logsdon, **Web Developer*
Ser.vi <http://home.ser.vi> Worldwide LLC USA & Ser.vi BV Europe
Email: [email protected]




On Wed, Jul 29, 2020 at 2:41 PM Paulo Silva <[email protected]> wrote:

> Not worked
>
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/angular/b066e376-a707-44c0-8896-7146e531f2e1o%40googlegroups.com
> <https://groups.google.com/d/msgid/angular/b066e376-a707-44c0-8896-7146e531f2e1o%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/CA%2BiBnOoT5W1UA7Qu-kNTZ2yrnp5-_H8Mrfb9%2Bnkjx4m7f3q2mQ%40mail.gmail.com.

Reply via email to