Angular Modernizer
    Preparing search index...

    Interface TemplateInspection

    Structure of one template.

    interface TemplateInspection {
        controlFlow: TemplateControlFlow;
        dynamicI18nCount: number;
        dynamicI18nPrefixes: TemplateI18nPrefix[];
        dynamicI18nUnprefixed: { offset: number; source: I18nKeySource }[];
        elements: InspectedTemplateElement[];
        i18nKeys: TemplateI18nKey[];
        parseErrors: string[];
        pipes: Record<string, number>;
    }
    Index

    Properties

    controlFlow: TemplateControlFlow

    Built-in blocks, structural directives and nesting depth.

    dynamicI18nCount: number

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

    dynamicI18nPrefixes: TemplateI18nPrefix[]

    Static prefixes of the dynamic keys that have one, in source order.

    dynamicI18nUnprefixed: { offset: number; source: I18nKeySource }[]

    Dynamic keys without a static start (key | translate), in source order.

    Type Declaration

    • offset: number

      0-based offset of the key expression in the template text.

    • source: I18nKeySource

      Translation pipe or translation directive.

    Elements and explicit <ng-template>s in source order.

    i18nKeys: TemplateI18nKey[]

    Static translation keys, in source order.

    parseErrors: string[]

    Parser errors; the rest of the result covers what the parser recovered.

    pipes: Record<string, number>

    Pipe usages by pipe name.