Created
March 14, 2019 14:47
-
-
Save vsavkin/5a9bb10884d6c4bb16d880043c467f5d 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
@NgModule({ | |
imports: [BrowserModule], | |
declarations: [GreetingComponent], | |
entryComponents: [GreetingComponent], | |
bootstrap: [] | |
}) | |
export class UiModule { | |
constructor(private injector: Injector) {} | |
ngDoBootstrap() { | |
const element = createCustomElement(GreetingComponent, { injector: this.injector }); | |
customElements.define('happynrwl-greeting', element); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment