Fetching and Displaying Data
In the previous chapter, we created a new WorldCities
solution containing a WorldCities
project (our Angular app) and a WorldCitiesAPI
project (our ASP.NET Web API) and made a considerable effort to empower the latter with a DBMS-based data provider, built upon Entity Framework Core using the Code-First approach. Now that we have data persistence, we’re ready to entrust our users with the ability to interact with our application; this means that we can switch to the Angular app and implement some much-needed stuff, such as the following:
- Fetching data: Querying the data provider from the client side using HTTP requests and getting structured results back from the server side
- Displaying data: Populating typical client-side components such as tables and lists, and thereby ensuring a good user experience for the end user
- Adding countries to the loop: For the sake of simplicity, we’ll learn how to implement the fetch and...