MCPcopy Index your code
hub / github.com/angular/angular / constructor

Method constructor

integration/ng_elements/src/app.ts:22–33  ·  view source on GitHub ↗
(injector: Injector)

Source from the content-addressed store, hash-verified

20})
21export class AppModule {
22 constructor(injector: Injector) {
23 customElements.define('hello-world-el', createCustomElement(HelloWorldComponent, {injector}));
24 customElements.define(
25 'hello-world-onpush-el',
26 createCustomElement(HelloWorldOnpushComponent, {injector}),
27 );
28 customElements.define(
29 'hello-world-shadow-el',
30 createCustomElement(HelloWorldShadowComponent, {injector}),
31 );
32 customElements.define('test-card', createCustomElement(TestCardComponent, {injector}));
33 }
34 ngDoBootstrap() {}
35}

Callers

nothing calls this directly

Calls 2

createCustomElementFunction · 0.90
defineMethod · 0.80

Tested by

no test coverage detected