3
Front-End and Back-End Interactions
Now that we have a minimalistic—yet fully working—ASP.NET Core and Angular web app up and running, we can definitely 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.
Wait a minute... as a matter of fact, we should've already got the gist of how it works, right? We saw this in Chapter 2, Looking Around, before getting rid of 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 ...
Get ASP.NET Core 5 and Angular - Fourth 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.