Created
December 18, 2018 03:14
-
-
Save debugmodedotnet/6a94799e3b5e2ec1d8f367f5fe33d836 to your computer and use it in GitHub Desktop.
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
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