Created
December 13, 2021 15:35
-
-
Save FunnyGhost/787e6902590660e7ea38b2bb3892e7c6 to your computer and use it in GitHub Desktop.
Server implementation of the Language Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NgModule({ | |
imports: [ | |
// The AppServerModule should import your AppModule followed | |
// by the ServerModule from @angular/platform-server. | |
AppModule, | |
ServerModule, | |
ServerTransferStateModule, | |
NoopAnimationsModule | |
], | |
providers: [ | |
... | |
{ provide: LanguageService, useClass: ServerLanguageService } | |
], | |
// Since the bootstrapped component is not inherited from your | |
// imported AppModule, it needs to be repeated here. | |
bootstrap: [AppComponent] | |
}) | |
export class AppServerModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment