I have a multi module Angular2 application in which I need to mock some data providers (the endpoints don't exist yet).
I have a functioning MockBackend provider which I have tried injecting in:
- the shared module that the data service resides in
- the module that uses the data service
- the component uses the data service
The first two resulted in the MockBackend taking over all http requests. The latter threw DI errors.
I could do with some guidance on how to inject separate instances.