Created
July 28, 2019 13:28
-
-
Save arturovt/3433237bfa6168093b27d6e0ce3a9b0e to your computer and use it in GitHub Desktop.
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
export class AppModule { | |
public static ngModuleDef = defineNgModule({ | |
type: AppModule, | |
imports: [BrowserModule], | |
declarations: [AppComponent], | |
bootstrap: [AppComponent] | |
}); | |
public static ngInjectorDef = defineInjector({ | |
factory: () => new AppModule( | |
inject(ComponentFactoryResolver) | |
), | |
imports: [BrowserModule] | |
}); | |
constructor(resolver: ComponentFactoryResolver) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment