2018-07-15 21:53:18 -04:00
|
|
|
import {Injector, NgModule} from '@angular/core';
|
2018-07-15 19:02:16 -04:00
|
|
|
import {createCustomElement} from '@angular/elements';
|
2018-07-15 21:53:18 -04:00
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
|
|
|
|
import {HelloWorldComponent, HelloWorldShadowComponent, TestCardComponent} from './elements';
|
2018-07-15 19:02:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [HelloWorldComponent, HelloWorldShadowComponent, TestCardComponent],
|
|
|
|
entryComponents: [HelloWorldComponent, HelloWorldShadowComponent, TestCardComponent],
|
|
|
|
imports: [BrowserModule],
|
|
|
|
})
|
|
|
|
export class AppModule {
|
2018-07-15 21:53:18 -04:00
|
|
|
constructor(private injector: Injector) {
|
|
|
|
customElements.define('hello-world-el', createCustomElement(HelloWorldComponent, {injector}));
|
2018-07-15 19:02:16 -04:00
|
|
|
customElements.define(
|
2018-07-15 21:53:18 -04:00
|
|
|
'hello-world-shadow-el', createCustomElement(HelloWorldShadowComponent, {injector}));
|
|
|
|
customElements.define('test-card', createCustomElement(TestCardComponent, {injector}));
|
2018-07-15 19:02:16 -04:00
|
|
|
}
|
2018-07-15 21:53:18 -04:00
|
|
|
ngDoBootstrap() {}
|
2018-07-15 19:02:16 -04:00
|
|
|
}
|