Documentation
    Preparing search index...

    Interface Component

    Typed behavior/state attached to a host.

    host is readonly in this contract because only the registry writes it: implementations declare it as a plain mutable field (see ComponentHostBinding) initialized to null, and ComponentRegistry assigns it on attach and clears it on detach. Application code must never assign host.

    interface Component {
        host: ComponentHost | null;
        dispose?(): void;
        onAttach?(host: ComponentHost): void;
        onDetach?(host: ComponentHost): void;
    }

    Implemented by

    Index
    host: ComponentHost | null