DEV Community

Discussion on: Consuming APIs in Angular: Displaying Data In Components

Collapse
 
agarwalakash profile image
Akash Agarwal

Won't any Observable be returned from the service to the component? As there wasn't any request being made in the service.

Collapse
 
florimondmanca profile image
Florimond Manca

Hey! Thanks for chiming in. The code is available in the original article, so I cropped it for brevity, but I just added the part that defines the list() method. :-)

Collapse
 
agarwalakash profile image
Akash Agarwal

Yeah I was wondering the same! I liked the way you described everything in detail. :)