This commit is contained in:
Eugene Pankov
2021-09-16 23:36:51 +02:00
parent 533749092a
commit 97b34cd702
63 changed files with 179 additions and 105 deletions

View File

@@ -1,18 +1,14 @@
import { NgModule } from '@angular/core'
import { ServerModule, ServerTransferStateModule } from '@angular/platform-server'
import { AppModule } from './app.module'
import { AppComponent } from './components/app.component'
import { AppComponent } from './app.component'
@NgModule({
imports: [
// The AppServerModule should import your AppModule followed
// by the ServerModule from @angular/platform-server.
AppModule,
ServerModule,
ServerTransferStateModule,
],
// Since the bootstrapped component is not inherited from your
// imported AppModule, it needs to be repeated here.
bootstrap: [AppComponent],
})
export class AppServerModule {}