-
Notifications
You must be signed in to change notification settings - Fork 5
/
app.server.module.ts
41 lines (34 loc) · 1.23 KB
/
app.server.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @license
* Copyright DagonMetric. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found under the LICENSE file in the root directory of this source tree.
*/
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { ServerModule, ServerTransferStateModule } from '@angular/platform-server';
import { FlexLayoutServerModule } from '@angular/flex-layout/server';
import { ModuleMapLoaderModule } from '@nguniversal/module-map-ngfactory-loader';
import { AppComponent } from './app.component';
import { appId, AppModule } from './app.module';
/**
* App server module for node platform.
*/
@NgModule({
imports: [
BrowserModule.withServerTransition({ appId }),
BrowserTransferStateModule,
HttpClientModule,
AppModule,
ServerModule,
ServerTransferStateModule,
ModuleMapLoaderModule,
NoopAnimationsModule,
FlexLayoutServerModule
],
bootstrap: [AppComponent]
})
export class AppServerModule { }