Closed corentinclichy closed 6 months ago
The Angular team is actually now recommending to use host
over HostBinding and HostListener.
Here is the documentation that states this: https://angular.dev/guide/components/host-elements#the-hostbinding-and-hostlistener-decorators
We are also adhering to this new standard and use host. You can disable the eslint rule for the spartan libraries that are created by the CLI by adding this to your .eslintrc.json:
{
"overrides": [{
"files": ["*.ts"],
"rules": {
"@angular-eslint/no-host-metadata-property": 0,
...
}
}]
}
Ok thanks a lot for the support
Please provide the environment you discovered this bug in.
NX@latest angular@latest
Which area/package is the issue in?
typography
Description
Hi,
When I install primitives for typography, for example, I get the host declared as metadata.
Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue