I have found a lot of resources on how to switch between using angular-in-memory-web-api or real API depending on the environment (dev or prod) but what I'm trying to do is quite different.
I want people to be able to try out the product without creating any account and by using in-memory-web-api so that anonymous users can't interact with the real API.
They would use a demo account with dummy data already available to play with and in their own isolated environment. I was thinking of injecting into services a real http service AND a one that uses in-memory-web-api (named mockAPI) and each service would rely on a UserService property to select which service to use (which would be at execution time, not compiling).
I'm learning Angular on my free time and I have no idea on how to inject two instances of the same service, with one being bypassed by in-memory-web-api.
How could it be done this way or is there a better way of solving this problem?
Thank you for your help.