Angular 4 - How can get value synchronously from an http request in another http request?

后端 未结 2 1415
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 17:01

I\'m using Angular 4 for my client application.

The getCustomer() function in customer.service calls an API to get data. This function is Observable.

This

2条回答
  •  醉酒成梦
    2021-01-03 17:39

    I'm using flatMap and it works now. Thank you very much for your suggestions @AJT_82

提交回复
热议问题