Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract http client module from lib #169

Merged
merged 6 commits into from
Apr 16, 2019

Conversation

mhamern
Copy link
Contributor

@mhamern mhamern commented Mar 1, 2019

By extracting HttpClientModule from library and let it on user of the library to provide we can avoid bugs introduced by design choice/behaviour of Angular mentioned here: angular/angular#20575

In previous state the library could cause other components imported or declared in same module to use its (more local) HttpClient rather than the one provided in main module of the app. Globally set interceptors would therefore not intercept requests made by those components.

However, it should be clearly mentioned in installation guide because it is breaking change (the component won't load without importing HttpClientModule in client app)

#159

@dimpu
Copy link
Owner

dimpu commented Mar 1, 2019

@mhamern Could you please rebase your branch. Also If you can please update the README.

@mhamern
Copy link
Contributor Author

mhamern commented Mar 1, 2019

Sure I will do it tommorow

@mhamern mhamern force-pushed the extract-http-client-module-from-lib branch from 2a8bc86 to 292e937 Compare March 2, 2019 10:28
@mhamern
Copy link
Contributor Author

mhamern commented Mar 21, 2019

Hi, is there anything holding up the merge?

@valmirphp
Copy link

@mhamern This lib is very nice, but I had the same problem on my Interceptors ...

The solution was to migrate to this package has the same behavior, it is likely to be a fork
https://www.npmjs.com/package/ngx-markdown

@dimpu dimpu merged commit 4f039f0 into dimpu:master Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants