Skip to content

Commit f2bea3b

Browse files
JeanMechealxhub
authored andcommitted
refactor(platform-server): remove HttpClientModule import (angular#58016)
This import is not necessary anymore. fixes angular#57983 PR Close angular#58016
1 parent ef577b2 commit f2bea3b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

goldens/public-api/platform-server/index.api.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
import { ApplicationRef } from '@angular/core';
88
import { EnvironmentProviders } from '@angular/core';
99
import * as i0 from '@angular/core';
10-
import * as i1 from '@angular/common/http';
11-
import * as i2 from '@angular/platform-browser/animations';
12-
import * as i3 from '@angular/platform-browser';
10+
import * as i1 from '@angular/platform-browser/animations';
11+
import * as i2 from '@angular/platform-browser';
1312
import { InjectionToken } from '@angular/core';
1413
import { PlatformRef } from '@angular/core';
1514
import { Provider } from '@angular/core';
@@ -67,7 +66,7 @@ export class ServerModule {
6766
// (undocumented)
6867
static ɵinj: i0.ɵɵInjectorDeclaration<ServerModule>;
6968
// (undocumented)
70-
static ɵmod: i0.ɵɵNgModuleDeclaration<ServerModule, never, [typeof i1.HttpClientModule, typeof i2.NoopAnimationsModule], [typeof i3.BrowserModule]>;
69+
static ɵmod: i0.ɵɵNgModuleDeclaration<ServerModule, never, [typeof i1.NoopAnimationsModule], [typeof i2.BrowserModule]>;
7170
}
7271

7372
// @public (undocumented)

packages/platform-server/src/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
ɵNullViewportScroller as NullViewportScroller,
1515
ɵPLATFORM_SERVER_ID as PLATFORM_SERVER_ID,
1616
} from '@angular/common';
17-
import {HttpClientModule} from '@angular/common/http';
1817
import {
1918
createPlatformFactory,
2019
Injector,
@@ -82,7 +81,7 @@ export const PLATFORM_SERVER_PROVIDERS: Provider[] = [
8281
*/
8382
@NgModule({
8483
exports: [BrowserModule],
85-
imports: [HttpClientModule, NoopAnimationsModule],
84+
imports: [NoopAnimationsModule],
8685
providers: PLATFORM_SERVER_PROVIDERS,
8786
})
8887
export class ServerModule {}

0 commit comments

Comments
 (0)