Angular Modernizer
    Preparing search index...

    Interface ComponentTemplateReport

    Inspection result for one component template.

    interface ComponentTemplateReport {
        component: string;
        componentFile: string;
        controlFlow: TemplateControlFlow;
        counts: {
            bindings: number;
            directives: number;
            elements: number;
            i18nKeys: number;
            inputs: number;
            outputs: number;
            pipes: number;
        };
        directives: ReportedDirective[];
        dynamicI18nCount: number;
        dynamicI18nPrefixes: ReportedI18nPrefix[];
        elements: ReportedElement[];
        i18nKeys: ReportedI18nKey[];
        inline: boolean;
        parseErrors: string[];
        pipes: ReportedPipe[];
        templateFile: string;
        unresolvedElements: { count: number; tag: string }[];
    }
    Index

    Properties

    component: string

    Component class name, <anonymous> for unnamed classes.

    componentFile: string

    Absolute path of the file declaring the component.

    controlFlow: TemplateControlFlow

    Built-in blocks, structural directives and nesting depth.

    counts: {
        bindings: number;
        directives: number;
        elements: number;
        i18nKeys: number;
        inputs: number;
        outputs: number;
        pipes: number;
    }

    Totals over the whole template, plain elements included.

    Type Declaration

    directives: ReportedDirective[]

    Project components and directives matched by elements, most used first.

    dynamicI18nCount: number

    Translation pipe/directive usages whose key is not a string literal.

    dynamicI18nPrefixes: ReportedI18nPrefix[]

    Static prefixes of dynamic keys ('A.' + x, `A.${x}`).

    elements: ReportedElement[]

    Elements in source order (plain elements only with includePlainElements).

    i18nKeys: ReportedI18nKey[]

    Static translation keys in source order.

    inline: boolean

    true for a template: literal, false for templateUrl:.

    parseErrors: string[]

    Template parser errors; the rest of the report covers what the parser recovered.

    pipes: ReportedPipe[]

    Pipes used in the template, most used first.

    templateFile: string

    .html file, or the .ts file for inline templates.

    unresolvedElements: { count: number; tag: string }[]

    Custom elements (tag contains -) without a matching project component: library components or missing declarations.

    Type Declaration

    • count: number

      Number of occurrences in the template.

    • tag: string

      Element tag name.