4
Front-End and Back-End Interactions
Now that we have a minimalistic—yet fully working—Angular web app up, running, and connected with our ASP.NET Core API, we can start to build some stuff. In this chapter, we’re going to learn the basics of client-side and server-side interactions: in other words, how the front-end (Angular) can fetch some relevant data from the back-end (ASP.NET Core) and display it on screen, in a readable fashion.
As a matter of fact, we should’ve already got the gist of how it works in Chapter 3, Looking Around, when we worked with Angular’s FetchDataComponent
and ASP.NET Core’s WeatherForecastController.cs
classes and files. The Angular component (front-end) pulls data from the ASP.NET controller (back-end) and then ...
Get ASP.NET Core 6 and Angular - Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.