2018-01-23 11:07:39 +01:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {ServerModule} from '@angular/platform-server';
|
|
|
|
import {ModuleMapLoaderModule} from '@nguniversal/module-map-ngfactory-loader';
|
|
|
|
|
|
|
|
import {AppModule} from './app.module';
|
|
|
|
import {AppComponent} from './app.component';
|
2019-06-03 15:21:49 +02:00
|
|
|
//import {REQUEST} from "@nguniversal/express-engine/tokens";
|
2018-01-23 11:07:39 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
// The AppServerModule should import your AppModule followed
|
|
|
|
// by the ServerModule from @angular/platform-server.
|
|
|
|
AppModule,
|
|
|
|
ServerModule,
|
|
|
|
ModuleMapLoaderModule,
|
|
|
|
],
|
|
|
|
// Since the bootstrapped component is not inherited from your
|
|
|
|
// imported AppModule, it needs to be repeated here.
|
|
|
|
bootstrap: [AppComponent],
|
|
|
|
})
|
2019-06-03 15:21:49 +02:00
|
|
|
export class AppServerModule {
|
|
|
|
/*constructor(@Inject(REQUEST) private request: Request) {}*/
|
|
|
|
}
|