File tree Expand file tree Collapse file tree 5 files changed +2
-34
lines changed Expand file tree Collapse file tree 5 files changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { Location } from '@angular/common';
19
19
HeaderComponent
20
20
] ,
21
21
imports : [
22
- BrowserModule . withServerTransition ( { appId : 'serverApp' } ) ,
22
+ BrowserModule ,
23
23
AppRoutingModule ,
24
24
BrowserAnimationsModule ,
25
25
HttpClientModule ,
Original file line number Diff line number Diff line change 1
1
export const environment = {
2
- production : true
3
2
} ;
Original file line number Diff line number Diff line change 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
-
5
1
export const environment = {
6
- production : false
7
2
} ;
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.
Original file line number Diff line number Diff line change 1
- import { enableProdMode } from '@angular/core' ;
2
-
3
- import { environment } from './environments/environment' ;
4
-
5
- if ( environment . production ) {
6
- enableProdMode ( ) ;
7
- }
8
-
9
1
export { AppServerModule } from './app/app.server.module' ;
10
- export { renderModuleFactory } from '@angular/platform-server' ;
Original file line number Diff line number Diff line change 1
- import { enableProdMode } from '@angular/core' ;
2
1
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
3
2
4
3
import { AppModule } from './app/app.module' ;
5
- import { environment } from './environments/environment' ;
6
4
7
- if ( environment . production ) {
8
- enableProdMode ( ) ;
9
- }
10
-
11
- document . addEventListener ( 'DOMContentLoaded' , ( ) => {
12
- platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
5
+ platformBrowserDynamic ( ) . bootstrapModule ( AppModule )
13
6
. catch ( err => console . error ( err ) ) ;
14
- } ) ;
You can’t perform that action at this time.
0 commit comments