ng2-adsk-forge-viewer icon indicating copy to clipboard operation
ng2-adsk-forge-viewer copied to clipboard

Remove HttpClientModule from ViewerModule imports

Open nezar-khamidekh opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Due to the HttpClientModule import in the ViewerModule, app lazy-loaded modules that include ViewerModule get a different instance of HttpClient Service. This leads to a change of the global HttpInterceptor Service behavior, etc.

Describe the solution you'd like Remove HttpClientModule from ViewerModule imports and require importing HttpClientModule manually in the root application module (AppModule).

Additional context Made a patch with patch-package lib and successfully fixed the issue in the existing app with Viewer.

nezar-khamidekh avatar Apr 15 '22 14:04 nezar-khamidekh