AngularTS
    Preparing search index...

    Interface WebComponentContext<T>

    interface WebComponentContext<T extends object = Record<string, unknown>> {
        host: HTMLElement;
        injector: InjectorService;
        root: HTMLElement | ShadowRoot;
        scope: Scope & T;
        shadowRoot?: ShadowRoot;
        dispatch(
            type: string,
            detail?: unknown,
            init?: CustomEventInit<any>,
        ): boolean;
    }

    Type Parameters

    • T extends object = Record<string, unknown>
    Index

    Properties

    host: HTMLElement

    Custom element host.

    injector: InjectorService

    Injector used by the AngularTS app that registered the element.

    root: HTMLElement | ShadowRoot

    Render root used for template content.

    scope: Scope & T

    Scope owned by the custom element.

    shadowRoot?: ShadowRoot

    Shadow root when shadow is enabled.

    Methods

    • Dispatch a composed bubbling DOM event from the host.

      Parameters

      • type: string
      • Optionaldetail: unknown
      • Optionalinit: CustomEventInit<any>

      Returns boolean