Closed JamesIde closed 11 months ago
Hello, not able to test for now, but I suspect you have to provide the interceptors
export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes),
provideHttpClient(
withInterceptorsFromDi()
),
importProvidersFrom(NgHttpLoaderModule.forRoot()),
],
};
Tested with withInterceptorsFromDi
and works as expected. README updated. Thanks for feedback!
Thanks @mpalourdio.. legend
Expected behavior
Spinner is shown when making get request to jsonplaceholder API
Actual behavior
No spinner is shown when making get request to jsonplaceholder API.
Steps to reproduce
ng-http-loader version
All angular dependencies 17.0.0 "ng-http-loader": "^15.0.0",
It does not work as expected on Internet explorer or Safari
It is not working as expected on any browser - no spinner is shown. What am I doing wrong here? Note - I have to add NgHttpLoaderModule to the imports array inside app.component.ts to resolve this error: