AngularTS
    Preparing search index...

    Interface WebComponentService

    interface WebComponentService {
        createElementScope<T extends object = Record<string, unknown>>(
            host: HTMLElement,
            initialState?: T,
            options?: ElementScopeOptions,
        ): Scope & T;
        defineAppComponent<T extends object = Record<string, unknown>>(
            name: string,
            options: AppComponentOptions<T>,
        ): CustomElementConstructor;
        defineElement<T extends object = Record<string, unknown>>(
            name: string,
            elementClass: ScopeElementConstructor<T>,
        ): CustomElementConstructor;
    }
    Index

    Methods

    • Create and attach a normal AngularTS child scope for a custom element.

      Type Parameters

      • T extends object = Record<string, unknown>

      Parameters

      Returns Scope & T

    • Define an options-backed application host custom element.

      Type Parameters

      • T extends object = Record<string, unknown>

      Parameters

      Returns CustomElementConstructor

    • Define a native custom element backed by an AngularTS child scope.

      Type Parameters

      • T extends object = Record<string, unknown>

      Parameters

      Returns CustomElementConstructor