JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

How to Mock a Backend Server with Angular In-Memory Web API

Aurélien Leloup
JavaScript in Plain English
9 min readJan 27, 2022

Hard-coding data is bad

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Written by Aurélien Leloup

Freelance Software Engineer. I mostly write about web development. Angular — Java — Vue — WordPress…

Responses (5)

You have some idea of how to use it with the standalone components, without the need for the app.module, since the modules we need are imported directly into the standalone ones

--

thanks for this article, another alternative solution is MSW (mock service worker) which also gives you more flexibility!

--

Cool article. Sorry, but why do we need that when Node.js exists? It's a matter of 30 minutes to build a good enough Node.js server with a simple API, proxy FE requests there, and then use it with Angular, React, Vue, whatever.

--