Skip to content

Instantly share code, notes, and snippets.

@arturovt
Last active July 28, 2019 13:27
Show Gist options
  • Select an option

  • Save arturovt/f639a0372bb3624901d0f25ba68212fe to your computer and use it in GitHub Desktop.

Select an option

Save arturovt/f639a0372bb3624901d0f25ba68212fe to your computer and use it in GitHub Desktop.
export class AppModule {
public static ngModuleDef = defineNgModule({
type: AppModule,
imports: [BrowserModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
});
public static ngInjectorDef = defineInjector({
factory: () => new AppModule(),
imports: [BrowserModule]
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment