Skip to content

Wrong usage of HostBinding in example code #57909

@karnkumar123

Description

@karnkumar123

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

core

Is this a regression?

No

Description

getter method is missing in hostbinding examples here https://angular.dev/guide/components/host-elements

Please provide a link to a minimal reproduction of the bug

https://angular.dev/guide/components/host-elements

Please provide the exception or error you saw

No response

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

Angular18

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions