Created
July 28, 2019 17:35
-
-
Save arturovt/2bd8edc4936ff57dfbfa37dddeeac992 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
import { Component, ɵrenderComponent as renderComponent, Injector } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<app-button></app-button> | |
` | |
}) | |
export class AppComponent { | |
constructor(injector: Injector) { | |
import('./button.component').then(({ ButtonComponent }) => { | |
renderComponent(ButtonComponent, { injector }); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment