Fetching Courses Created from the Database
Learn to fetch data from the database.
In this lesson, we’ll display all the courses created and saved into the database on the client-side of our application. To do that, we need to take the following steps:
Step 1: Consuming the REST API
To consume the REST API to show a list of created courses, we head to the course-list
directory and open the course-list.component.ts
file. Next, we integrate the code below:
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy