Skip to content

Instantly share code, notes, and snippets.

@FunnyGhost
Created December 13, 2021 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FunnyGhost/66d869c2ef301c3d01b14c48d8fcca4c to your computer and use it in GitHub Desktop.
Save FunnyGhost/66d869c2ef301c3d01b14c48d8fcca4c to your computer and use it in GitHub Desktop.
App module overriding Language Service
@NgModule({
imports: [
...
],
declarations: [
...
],
// Providers that are different between the Server and the Browser
providers: [
...
{ provide: LanguageService, useClass: WebLanguageService },
],
bootstrap: [AppComponent]
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment