mgechev / mgechev/angular2-style-guide
Use HostBinding/HostListener instead of host property
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 1.2k
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
I'm not really fond of this recommandation.
Look at this code :
https://github.com/angular/material2/blob/master/src/components/checkbox/checkbox.ts
Having to declare all the properties set in the host property will make the code far less readable.
Well, perhaps it's just a matter of taste.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the style-guide recommendation about using HostBinding/HostListener and compare it with the linked Angular Material checkbox.ts example. The issue does not identify a local file, test, or agreed resolution; done would require a maintainer decision about whether the recommendation should change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular
- Domain
- documentation, frontend
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100