HTTP client and in-memory web APIs

At the beginning of this chapter, we decided that we'd like to change the way how we handle data within our application. Currently, our task data is embedded within our task service and retrieving as well as manipulating are both happening synchronously. Going forward, we want to change that and come as close as possible to a real-world situation. At the same time, we should keep an eye on the complexity costs of our solution.

Angular comes with a very nice utility for these use cases. Using the in-memory web API module, we can create a mock back-end service which will allow us to use a RESTful interface the same way as if we would connected to a real server. All remote calls using the Angular HTTP client ...

Get Mastering Angular Components 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.