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 will, however, be redirected to our local in-memory database. The way we deal with our data will be entirely authentic. At some point...