Answer the question
In order to leave comments, you need to log in
How to stop interval in RxJS?
It is necessary to stop the interval upon reaching a certain value of the variable timer
timer = 0;
startTimer(): any {
interval(1000).subscribe(i => {
this.timer++;
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question