...

/

Angular In-memory-web-api

Angular In-memory-web-api

In this lesson, you will learn about different ways of dealing with data in Angular applications in the absence of an API.

We'll cover the following...

The most important thing about working with any application, is dealing with data, lots of it. Data that resides on the server is dealt with by the use of HTTP operations. We perform HTTP, GET, and POST operations to work with that data.

Now, in a real application, this data is stored on the server and received through an API. However, for testing purposes, instead of using a real server, we can fake the back-end server.

The different ways of using a fake back-end server are:

  • Create a file, hard-code the data, and return this data.
  • Create a local JSON file and use it
  • Use Angular in-memory-web-api

In this ...