AngularTS
    Preparing search index...

    Interface AppComponentOptions<T>

    interface AppComponentOptions<T extends object = Record<string, unknown>> {
        attributeChanged?: (
            name: string,
            oldValue: string | null,
            newValue: string | null,
            context: WebComponentContext<T>,
        ) => void;
        connected?: (context: WebComponentContext<T>) => (() => void) | undefined;
        disconnected?: (context: WebComponentContext<T>) => void;
        inputs?: WebComponentInputs;
        isolate?: boolean;
        scope?: T | (() => T);
        shadow?: boolean | ShadowRootInit;
        template?: string;
    }

    Type Parameters

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

    Properties

    attributeChanged?: (
        name: string,
        oldValue: string | null,
        newValue: string | null,
        context: WebComponentContext<T>,
    ) => void

    Called after an observed input attribute changes.

    connected?: (context: WebComponentContext<T>) => (() => void) | undefined

    Called after the scope exists and the template has been linked.

    disconnected?: (context: WebComponentContext<T>) => void

    Called before the scope is destroyed.

    Declared DOM attributes/properties that sync into the scope.

    isolate?: boolean

    Use an isolate child scope instead of inheriting parent properties.

    scope?: T | (() => T)

    Initial scope state, or a factory returning it.

    shadow?: boolean | ShadowRootInit

    Enables shadow DOM, or passes ShadowRootInit options.

    template?: string

    Template compiled into the host or shadow root.