Skip to content

Commit 946f4ea

Browse files
SkyZeroZxleonsenft
authored andcommitted
docs(docs-infra): remove redundant provide http and zoneless providers
Removes `provideHttpClient(withFetch())` and `provideZonelessChangeDetection()` from the root config since both are already provided by default
1 parent 26afb73 commit 946f4ea

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

adev/src/app/app.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
*/
88

99
import {DOCUMENT} from '@angular/common';
10-
import {provideHttpClient, withFetch} from '@angular/common/http';
1110
import {
1211
ApplicationConfig,
1312
ErrorHandler,
1413
inject,
15-
provideZonelessChangeDetection,
1614
provideEnvironmentInitializer,
1715
} from '@angular/core';
1816
import {
@@ -37,9 +35,7 @@ import {TYPESCRIPT_VFS_WORKER_PROVIDER} from './editor/code-editor/workers/facto
3735
export const appConfig: ApplicationConfig = {
3836
providers: [
3937
routerProviders,
40-
provideZonelessChangeDetection(),
4138
provideClientHydration(),
42-
provideHttpClient(withFetch()),
4339
provideEnvironmentInitializer(() => inject(AnalyticsService)),
4440
provideAlgoliaSearchClient(environment),
4541
{provide: ENVIRONMENT, useValue: environment},

0 commit comments

Comments
 (0)