How can i await the result from my method in my service?

前端 未结 0 1420
走了就别回头了
走了就别回头了 2020-12-22 06:12

I have this method in my service.

get trucks() {
    if (!this.cache$) {
      this.cache$ = this.requestAvailableTrucks().pipe(
        shareReplay(CACHE_SIZ         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题