Last active
June 25, 2017 15:33
-
-
Save stevermeister/f6f89631dfd9d5cde07e11f557aef562 to your computer and use it in GitHub Desktop.
Example for Stepan Suvorov Blog
This file contains 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
platformBrowserDynamic().bootstrapModule(AppModule).then((ngModuleRef: NgModuleRef<AppModule>) => { | |
let componentFactoryResolver = ngModuleRef.componentFactoryResolver; | |
let componentFactory = ngModuleRef.componentFactoryResolver.resolveComponentFactory(HelloComponent); | |
let componentRef = componentFactory.create(ngModuleRef.injector, [], document.querySelector('hello')); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment