...
/Challenge: Displaying Data from a REST API
Challenge: Displaying Data from a REST API
Learn to consume data from an array using the HttpClientModule in Angular and display the data in the template using a table.
Challenge description
In this challenge, we’ll use HttpClientModule
, Providers
, and dependency injection in Angular. We’ll follow the steps below:
Step 1: Generate a new service
First, we’ll start with generating a new service file called user
. Inside this file, we use the GET request in ...