MCPcopy
hub / github.com/angular/angular / constructor

Method constructor

adev/src/content/examples/elements/src/app/app.ts:17–25  ·  view source on GitHub ↗
(
    injector: Injector,
    public popup: PopupService,
  )

Source from the content-addressed store, hash-verified

15})
16export class App {
17 constructor(
18 injector: Injector,
19 public popup: PopupService,
20 ) {
21 // Convert `PopupComponent` to a custom element.
22 const PopupElement = createCustomElement(Popup, {injector});
23 // Register the custom element with the browser.
24 customElements.define('popup-element', PopupElement);
25 }
26}

Callers

nothing calls this directly

Calls 2

createCustomElementFunction · 0.90
defineMethod · 0.80

Tested by

no test coverage detected