Skip to content

Commit 55326bb

Browse files
committed
make it compatible with Angular SSR
1 parent 885bc0e commit 55326bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {ReactiveFormsModule} from "@angular/forms";
2121
import {CoursesService} from "./services/courses.service";
2222
import {CourseResolver} from "./services/course.resolver";
2323
import {provideAnimations} from "@angular/platform-browser/animations";
24-
import {provideHttpClient, withInterceptorsFromDi} from "@angular/common/http";
24+
import {provideHttpClient, withFetch, withInterceptorsFromDi} from "@angular/common/http";
2525

2626

2727
export const appConfig: ApplicationConfig = {
@@ -30,6 +30,6 @@ export const appConfig: ApplicationConfig = {
3030
CoursesService,
3131
CourseResolver,
3232
provideAnimations(),
33-
provideHttpClient(withInterceptorsFromDi())
33+
provideHttpClient(withInterceptorsFromDi(), withFetch())
3434
]
3535
};

0 commit comments

Comments
 (0)