Title: Angular.dev - Inconsistent preference of @HostBinding/@HostListener and host property · Issue #52561 · angular/angular · GitHub
Open Graph Title: Angular.dev - Inconsistent preference of @HostBinding/@HostListener and host property · Issue #52561 · angular/angular
X Title: Angular.dev - Inconsistent preference of @HostBinding/@HostListener and host property · Issue #52561 · angular/angular
Description: Describe the problem that you experienced On the Components / Host Elements page, it states that the host property is preferred over @HostBinding and @HostListener. However in the Best Practices / Style Guide page it states that @HostBin...
Open Graph Description: Describe the problem that you experienced On the Components / Host Elements page, it states that the host property is preferred over @HostBinding and @HostListener. However in the Best Practices / ...
X Description: Describe the problem that you experienced On the Components / Host Elements page, it states that the host property is preferred over @HostBinding and @HostListener. However in the Best Practices / ...
Opengraph URL: https://github.com/angular/angular/issues/52561
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular.dev - Inconsistent preference of @HostBinding/@HostListener and host property","articleBody":"### Describe the problem that you experienced\n\nOn the Components / Host Elements page, it states that the host property is preferred over \u003cspan>@\u003c/span>HostBinding and \r\n\u003cspan>@\u003c/span>HostListener.\r\n\r\nHowever in the Best Practices / Style Guide page it states that \u003cspan>@\u003c/span>HostBinding and \u003cspan>@\u003c/span>HostListener are preferred over the host property (Style 06-03).\r\n\r\nWhich is the preferred method?\n\n### Enter the URL of the topic with the problem\n\nhttps://angular.dev/guide/components/host-elements\n\n### Describe what you were looking for in the documentation\n\n_No response_\n\n### Describe the actions that led you to experience the problem\n\n_No response_\n\n### Describe what you want to experience that would fix the problem\n\n_No response_\n\n### Add a screenshot if that helps illustrate the problem\n\nComponents / Host Elements page:\r\n\r\n\r\nBest Practices /Style Guide page:\r\n\n\n### If this problem caused an exception or error, please paste it here\n\n_No response_\n\n### If the problem is browser-specific, please specify the device, OS, browser, and version\n\n_No response_\n\n### Provide any additional information here in as much as detail as you can\n\n_No response_","author":{"url":"https://github.com/spfuller","@type":"Person","name":"spfuller"},"datePublished":"2023-11-07T03:19:52Z","url":"https://github.com/angular/angular/issues/52561"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bee61630-823f-3a4d-5d2a-e33e1134e112 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1F2:38E318:3C8F6C:4C3124:6B010710 |
| html-safe-nonce | 0fa102a26abdad70ac2c32b80edb46c667a2dfbb1cb2b82a4e412ebbf9225dc3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUYyOjM4RTMxODozQzhGNkM6NEMzMTI0OjZCMDEwNzEwIiwidmlzaXRvcl9pZCI6IjE5NzI0NDAwMTEzNzg4NTM2NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 34ab9498d47096044d88c23691bb6d9b9f2e1bc118f273e6a319078feef0449e |
| hovercard-subject-tag | issue:1980466217 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/52561/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d2db8daee4438517dd082826b373c4a32546872839ecb29792fed7792b0a579/angular/angular/issues/52561 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d2db8daee4438517dd082826b373c4a32546872839ecb29792fed7792b0a579/angular/angular/issues/52561 |
| og:image:alt | Describe the problem that you experienced On the Components / Host Elements page, it states that the host property is preferred over @HostBinding and @HostListener. However in the Best Practices / ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spfuller |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width