Angular Modernizer
    Preparing search index...

    Interface ComponentHostResult

    interface ComponentHostResult {
        alternatives: { className: string; file: string; selector: string }[];
        candidateHosts: DynamicHost[];
        counts: {
            candidateHosts: number;
            dynamicHosts: number;
            hosts: number;
            occurrences: number;
            occurrencesMissingRequired: number;
            templatesScanned: number;
        };
        coverage: {
            inputs: Record<string, BindingCoverage>;
            outputs: Record<string, BindingCoverage>;
        };
        dynamicHosts: DynamicHost[];
        hosts: ComponentHost[];
        target?: HostTarget;
    }
    Index

    Properties

    alternatives: { className: string; file: string; selector: string }[]

    Other classes that matched the query too (ambiguous class name or selector).

    Type Declaration

    • className: string

      Class name.

    • file: string

      Absolute path of the declaring file.

    • selector: string

      Selector from the decorator.

    candidateHosts: DynamicHost[]

    Places that may create the target: registry lookups (dynamicComponents) whose selector comes from data, with selectorExpression.

    counts: {
        candidateHosts: number;
        dynamicHosts: number;
        hosts: number;
        occurrences: number;
        occurrencesMissingRequired: number;
        templatesScanned: number;
    }

    Totals of the result.

    Type Declaration

    • candidateHosts: number
    • dynamicHosts: number
    • hosts: number

      Template hosts.

    • occurrences: number

      Matching elements over all hosts.

    • occurrencesMissingRequired: number

      Occurrences with at least one missing required input.

    • templatesScanned: number

      Templates whose text may contain the selector and were parsed.

    coverage: {
        inputs: Record<string, BindingCoverage>;
        outputs: Record<string, BindingCoverage>;
    }

    Per input/output name, keyed by the public binding name.

    Type Declaration

    dynamicHosts: DynamicHost[]

    Places creating the target in code (dialogs, createComponent, wrappers, routes); empty for directives.

    hosts: ComponentHost[]

    Components whose template uses the target, sorted by component name.

    target?: HostTarget

    undefined when no project component/directive matched the query.