Open tmccurdy opened 5 years ago
Here's a sample demonstrating this does not work. sample.zip
I use below syntax in my application and it works without any issues:
HttpClientModule,
BUILD_PROFILE === 'standalone'
? HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {
delay: 500,
passThruUnknownUrl: true
})
: []
],
It doesn't work. Is anyone able to take the sample project I attached and see what I am doing wrong?
I used to be able to write the imports like this:
Now, since version "0.7.0", it has to be written like this, which when done, you can no longer use the "passThru" option because now the standard WebApi won't exist while "mocking=true":
If I try to do the first way above, I get this error every time: