Skip to content

Template Literals Not Working as Expected #59720

@JeevanMahesha

Description

@JeevanMahesha

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

Description:

While testing the upcoming template literal support in Angular v19.2.0, I observed an inconsistency:

  • Working as Expected: Template literals function correctly within component templates defined in external HTML files.

  • Issue Encountered: When using template literals directly within the template property of the @Component decorator in a TypeScript file, Angular throws an error, indicating it cannot process the template.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-xft1d9bg?file=src%2Fmain.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions