www
www copied to clipboard
Consuming APIs in Angular: Displaying Data In Components
Consuming APIs in Angular: Displaying Data In Components
Learn how to fetch a list of items from a REST API and display it in an Angular component.
https://florimond.dev/blog/articles/2019/02/consuming-apis-in-angular-displaying-data-in-components/
This is complete rubbish; the CourseService
class simply doesn't do anything.
Hi @rwb196884,
The listing for CourseService
is abbreviated in this post, you can see the full listing in the previous post: The Model-Adapter Pattern, which was mentioned in the introduction of this post.
Also, I’d highly appreciate if we could stay polite and respectful around here. For example, it would have been more appropriate to phrase this as, “Is the CourseService
an empty class, or am I missing something?”.
Greetings!
Thanks for the article. Although it would have been better if you have included error handling and displaying loaders/spinners while the data being fetched. Thanks nonetheless.