Revision 61402
Added by Konstantinos Triantafyllou almost 3 years ago
app.server.module.ts | ||
---|---|---|
1 |
import {NgModule} from '@angular/core';
|
|
1 |
import { NgModule } from '@angular/core';
|
|
2 | 2 |
import {ServerModule, ServerTransferStateModule} from '@angular/platform-server'; |
3 |
import {ModuleMapLoaderModule} from '@nguniversal/module-map-ngfactory-loader'; |
|
4 | 3 |
|
5 |
import {AppModule} from './app.module'; |
|
6 |
import {AppComponent} from './app.component'; |
|
7 |
//import {REQUEST} from "@nguniversal/express-engine/tokens"; |
|
4 |
import { AppModule } from './app.module'; |
|
5 |
import { AppComponent } from './app.component'; |
|
8 | 6 |
|
9 | 7 |
@NgModule({ |
10 | 8 |
imports: [ |
11 |
// The AppServerModule should import your AppModule followed |
|
12 |
// by the ServerModule from @angular/platform-server. |
|
13 | 9 |
AppModule, |
14 | 10 |
ServerModule, |
15 |
ModuleMapLoaderModule, |
|
16 | 11 |
ServerTransferStateModule |
17 | 12 |
], |
18 |
// Since the bootstrapped component is not inherited from your |
|
19 |
// imported AppModule, it needs to be repeated here. |
|
20 | 13 |
bootstrap: [AppComponent], |
21 | 14 |
}) |
22 |
export class AppServerModule { |
|
23 |
/*constructor(@Inject(REQUEST) private request: Request) {}*/ |
|
24 |
} |
|
15 |
export class AppServerModule {} |
Also available in: Unified diff
[Explore-Service]: Update to angular 11. Delete branches