Revision 61408
Added by Konstantinos Triantafyllou over 2 years ago
app.server.module.ts | ||
---|---|---|
1 |
import {NgModule} from '@angular/core'; |
|
2 |
import {ServerModule} from '@angular/platform-server'; |
|
3 |
import {ModuleMapLoaderModule} from '@nguniversal/module-map-ngfactory-loader'; |
|
1 |
import { NgModule } from '@angular/core'; |
|
2 |
import { ServerModule } from '@angular/platform-server'; |
|
4 | 3 |
|
5 |
import {AppModule} from './app.module';
|
|
6 |
import {AppComponent} from './app.component';
|
|
4 |
import { AppModule } from './app.module';
|
|
5 |
import { AppComponent } from './app.component';
|
|
7 | 6 |
|
8 | 7 |
@NgModule({ |
9 | 8 |
imports: [ |
10 |
// The AppServerModule should import your AppModule followed |
|
11 |
// by the ServerModule from @angular/platform-server. |
|
12 | 9 |
AppModule, |
13 | 10 |
ServerModule, |
14 |
ModuleMapLoaderModule, |
|
15 | 11 |
], |
16 |
// Since the bootstrapped component is not inherited from your |
|
17 |
// imported AppModule, it needs to be repeated here. |
|
18 | 12 |
bootstrap: [AppComponent], |
19 | 13 |
}) |
20 | 14 |
export class AppServerModule {} |
Also available in: Unified diff
[Monitor Dashboard | Trunk]: Update to angular 11