mgechev / mgechev/angular2-style-guide

Use HostBinding/HostListener instead of host property

Open
#52 0 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.