Skip to content

Ergonomic syntax for aria attributes broken #63744

@samvloeberghs

Description

@samvloeberghs

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

compiler-cli, compiler, core

Is this a regression?

Yes

Description

See

I would expect [aria-invalid]="boolean" to work. [attr.aria-invalid]="boolean" still works.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-next-fnwtwrez?file=src%2Fapp.ts

Please provide the exception or error you saw

Error in src/app.ts (33:11)
Can't bind to 'ariaInvalid' since it isn't a known property of 'input'.

Please provide the environment you discovered this bug in (run ng version)

"@angular/animations": "21.0.0-next.2",
    "@angular/common": "next",
    "@angular/compiler": "next",
    "@angular/core": "next",
    "@angular/forms": "next",
    "@angular/platform-browser": "next",
    "@angular/router": "next",
    "@standard-schema/spec": "^1.0.0",
    "rxjs": "^7.8.2",
    "tslib": "^2.8.1",
    "zone.js": "~0.15.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compilerIssues related to `ngc`, Angular's template compiler

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions