- ASP.NET Core 2 and Angular 5
- Valerio De Sanctis
- 97字
- 2025-04-04 17:58:00
How to use it
The first thing that catches our eye is that we're using the HttpClient class within the constructor; we only got the quizzes property to store its results. As a matter of fact, we don't even instantiate it within our code, we just have an HTTP parameter to the constructor and take it for granted, as if there was some guy who would instantiate it for us.
As a matter of fact, it is just like that, but the guy is Angular itself, or--to better say it--its very own Dependency Injection framework.