Angular interval pipe with a longer task inside

后端 未结 2 401
北海茫月
北海茫月 2021-01-24 07:18

I have this code inside my component:

  ngOnInit() {
    ...
    this.counterValue$ = interval(1000).pipe(
      switchMap(() => this.perfService.getCounter(t         


        
2条回答
提交回复
热议问题