Skip to content

Angular property binding begin with colon should throw error #44185

Open
@Zuckjet

Description

@Zuckjet

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

compiler

Is this a regression?

No

Description

with this code, Angular will treat the button as disabled(xxxx is any random string)

<button :disabled="xxxx">Disabled Button</button>

First, is there any document that Angular support this code style begin with colon(:) for property binding ?
If not, I think it is better to throw error

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

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

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: compilerIssues related to `ngc`, Angular's template compilerarea: coreIssues related to the framework runtimecompiler: parser

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions