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
I'm using flatMap and it works now. Thank you very much for your suggestions @AJT_82