In this Angular 9 tutorial, you’ll learn by example how to send GET requests to REST API servers in your Angular 9 application using Angular 9 HttpClient. We’ll also learn how to use the basic concepts of Angular like components and services and how to use the ngFor directive to display arrays of data.

We’ll be consuming a JSON API available from NewsAPI.org

Throughout this Angular 9 tutorial, we are going to build a simple example from scratch using Angular CLI v9 and we’ll see how to use HttpClient to send GET requests to third-party REST API servers and how to consume and display the returned JSON data.

In more details, we’ll learn:

  • How to create an Angular 9/8 project using Angular CLI,
  • How to quickly set up Angular 9 routing in our project,
  • How to create Angular 9 components and services,
  • How to subscribe to Observables,
  • How to use the Angular ngFor directive in templates to iterate over data.

This Angular tutorial is accompanying this post https://www.techiediaries.com/angular/angular-8-7-tutorial-example-rest-api-httpclient-get-ngfor/

#angular #javascript #programming #developer #web-development

Angular 9/8 Tutorial: REST APIs, HttpClient GET, Components, Services & ngFor
4 Likes598.40 GEEK