Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created December 18, 2018 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/6a94799e3b5e2ec1d8f367f5fe33d836 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/6a94799e3b5e2ec1d8f367f5fe33d836 to your computer and use it in GitHub Desktop.
import { AppComponent } from './app.component';
import { GreetComponent } from './greet.component';
@NgModule({
declarations: [
AppComponent, GreetComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [GreetComponent],
entryComponents: [GreetComponent]
})
export class AppModule {
constructor(private injector: Injector) {
const customElement = createCustomElement(GreetComponent, { injector });
customElements.define('app-root', customElement);
}
ngDoBootstrap() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment