Skip to content

Instantly share code, notes, and snippets.

@anthanh
Last active December 10, 2017 23:16
Show Gist options
  • Save anthanh/6a8c1e8c792292ae49cbe420e6d48cb8 to your computer and use it in GitHub Desktop.
Save anthanh/6a8c1e8c792292ae49cbe420e6d48cb8 to your computer and use it in GitHub Desktop.
Angular 5 with Universal and TransferState: app server module
// app.server.module.ts
import { NgModule } from '@angular/core';
import { ServerModule } from '@angular/platform-server';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
@NgModule({
imports: [
AppModule,
ServerModule
],
bootstrap: [AppComponent],
})
export class AppServerModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment