Skip to content

Commit 99ddcbc

Browse files
committed
chore: remove deprecated features
1 parent 437e3b5 commit 99ddcbc

File tree

5 files changed

+2
-34
lines changed

5 files changed

+2
-34
lines changed

src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Location } from '@angular/common';
1919
HeaderComponent
2020
],
2121
imports: [
22-
BrowserModule.withServerTransition({appId: 'serverApp'}),
22+
BrowserModule,
2323
AppRoutingModule,
2424
BrowserAnimationsModule,
2525
HttpClientModule,

src/environments/environment.prod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export const environment = {
2-
production: true
32
};

src/environments/environment.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,2 @@
1-
// This file can be replaced during build by using the `fileReplacements` array.
2-
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
3-
// The list of file replacements can be found in `angular.json`.
4-
51
export const environment = {
6-
production: false
72
};
8-
9-
/*
10-
* For easier debugging in development mode, you can import the following file
11-
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12-
*
13-
* This import should be commented out in production mode because it will have a negative impact
14-
* on performance if an error is thrown.
15-
*/
16-
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

src/main.server.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
import { enableProdMode } from '@angular/core';
2-
3-
import { environment } from './environments/environment';
4-
5-
if (environment.production) {
6-
enableProdMode();
7-
}
8-
91
export { AppServerModule } from './app/app.server.module';
10-
export { renderModuleFactory } from '@angular/platform-server';

src/main.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
import { enableProdMode } from '@angular/core';
21
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
32

43
import { AppModule } from './app/app.module';
5-
import { environment } from './environments/environment';
64

7-
if (environment.production) {
8-
enableProdMode();
9-
}
10-
11-
document.addEventListener('DOMContentLoaded', () => {
12-
platformBrowserDynamic().bootstrapModule(AppModule)
5+
platformBrowserDynamic().bootstrapModule(AppModule)
136
.catch(err => console.error(err));
14-
});

0 commit comments

Comments
 (0)