Skip to content

Commit 2eacdec

Browse files
committed
updated readme sample of ApplicationConfig
1 parent 3f27189 commit 2eacdec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ import { ApplicationConfig, importProvidersFrom } from '@angular/core';
8080
import { provideRouter } from '@angular/router';
8181
import { NgHttpLoaderModule } from 'ng-http-loader';
8282
import { routes } from './app.routes';
83-
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
83+
import { provideHttpClient, withInterceptors } from '@angular/common/http';
84+
import { pendingRequestsInterceptor$ } from 'ng-http-loader';
8485

8586
export const appConfig: ApplicationConfig = {
8687
providers: [
8788
provideRouter(routes),
88-
withInterceptors([pendingRequestsInterceptor$])
89+
provideHttpClient(withInterceptors([pendingRequestsInterceptor$])),
8990
],
9091
};
9192
```

0 commit comments

Comments
 (0)