Skip to content

Commit 5711d68

Browse files
committed
refactor
1 parent 0a16dae commit 5711d68

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ global['CSS'] = null;
2222
// global['XMLHttpRequest'] = require('xmlhttprequest').XMLHttpRequest;
2323
global['Prism'] = null;
2424

25-
import 'reflect-metadata';
26-
import 'zone.js/dist/zone-node';
2725
import { enableProdMode } from '@angular/core';
2826
import * as express from 'express';
2927
import * as compression from 'compression';

src/app/app.browser.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export function getRequest(): any {
2424
@NgModule({
2525
bootstrap: [AppComponent, InlineStyleComponent],
2626
imports: [
27-
BrowserTransferStateModule,
2827
AppModule,
28+
BrowserTransferStateModule,
2929
TranslatesBrowserModule,
3030
InlineStyleModule,
3131
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: false })

src/app/app.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export function initLanguage(translateService: TranslatesService): Function {
3333
CookieService,
3434
{ provide: APP_INITIALIZER, useFactory: initLanguage, multi: true, deps: [TranslatesService] },
3535
],
36-
bootstrap: [AppComponent]
3736
})
3837
export class AppModule {
3938
}

src/app/app.server.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ import { InlineStyleModule } from './inline-style/inline-style.module';
1616

1717
@NgModule({
1818
imports: [
19+
// AppModule - FIRST!!!
1920
AppModule,
21+
ServerModule,
2022
NoopAnimationsModule,
2123
ServerTransferStateModule,
22-
ServerModule,
2324
InlineStyleModule,
2425
ModuleMapLoaderModule,
2526
TranslatesServerModule

0 commit comments

Comments
 (0)