What if a component in our application requires multiple asynchronous HTTP requests to properly display the correct information? For example, what if we also needed to load the blog's metadata to fetch the total number of blog posts? We can do this using the Promise standard's all callback to run all our asynchronous requests simultaneously while still returning a single result when they complete.
Creating Concurrent API requests in Angular
Getting ready
Let's add a new API request to our blog service for getting the total count of Angular blog posts. We'll show this count and its link to the official Angular blog in the header of our PostsList component template. We can fetch this metadata from the default...