Closed winnemucca closed 7 years ago
It's not designed for dynamic configuration.
In PR #130 you will be able to reset your in-mem database via POST commands/resetDb
(see a test for that). Combine that capability with the passThruUnknownUrl: true
option during initial configuration and I think you can get what you want.
I am seeing that it is very straightforward to enable it is very straight forward to enable/disable in-memory-web-api according to your documentation. I have been playing with scenarios in which the tester can enable/disable certain mock services from a dropdown modal.
I have not been able to subscribe to the service from my component.
I was hoping the subscription would be as simple as injecting the service into the component and doing
However, I receive an error
This is definitely a stack overflow type question, but I am curious if this is even possible to achieve with the library?
Additionally, I changed my return statement to