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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.217.95