Title: How to access the host component from a directive ? · Issue #8277 · angular/angular · GitHub
Open Graph Title: How to access the host component from a directive ? · Issue #8277 · angular/angular
X Title: How to access the host component from a directive ? · Issue #8277 · angular/angular
Description: According to the change log (https://github.com/angular/angular/blob/master/CHANGELOG.md), AppViewManager is renamed into ViewUtils and is a mere private utility service. However, I was using AppViewManager.getComponent to obtain a Compo...
Open Graph Description: According to the change log (https://github.com/angular/angular/blob/master/CHANGELOG.md), AppViewManager is renamed into ViewUtils and is a mere private utility service. However, I was using AppVi...
X Description: According to the change log (https://github.com/angular/angular/blob/master/CHANGELOG.md), AppViewManager is renamed into ViewUtils and is a mere private utility service. However, I was using AppVi...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/angular/angular/issues/8277
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to access the host component from a directive ?","articleBody":"According to the change log (https://github.com/angular/angular/blob/master/CHANGELOG.md),\nAppViewManager is renamed into ViewUtils and is a mere private utility service.\n\nHowever, I was using `AppViewManager.getComponent` to obtain a Component reference from an ElementRef before, how would I do this now?\n\nWhat I need to achieve is the following:\n- I have a Component with a selector (say: selector my-component)\n- A directive that can be placed upon Components (my-directive)\n\nIn HTML, it looks as following\n`\u003cmy-component my-directive>\u003c/my-component>`\n\nFrom my-directive, I need to have a reference to the my-component Component instance.\n\nIf there is another (better) way of doing this, I'm happy to adapt my code\n","author":{"url":"https://github.com/frankpepermans","@type":"Person","name":"frankpepermans"},"datePublished":"2016-04-27T11:34:42Z","url":"https://github.com/angular/angular/issues/8277"}
| 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:869b2cd7-024c-3e7e-4d89-359354b9d270 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8D4:3F8A67:FC05C7:1514A07:6B0113CC |
| html-safe-nonce | 00f36eb01fd02ea347d0e379263c94acb826cd2be0652a244215902705924dbd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEQ0OjNGOEE2NzpGQzA1Qzc6MTUxNEEwNzo2QjAxMTNDQyIsInZpc2l0b3JfaWQiOiIxMzYwOTgwNjc0Mzg2OTI0NDkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4095898ca54c83854f818282166c8779e36c54b1a4bb7cc7cd7115d22b1aafbe |
| hovercard-subject-tag | issue:151363766 |
| 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/8277/issue_layout |
| twitter:image | https://opengraph.githubassets.com/010b5efd7710a62e9c793f18b95ac30885ef2641bc77b625126526b0cdc078eb/angular/angular/issues/8277 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/010b5efd7710a62e9c793f18b95ac30885ef2641bc77b625126526b0cdc078eb/angular/angular/issues/8277 |
| og:image:alt | According to the change log (https://github.com/angular/angular/blob/master/CHANGELOG.md), AppViewManager is renamed into ViewUtils and is a mere private utility service. However, I was using AppVi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | frankpepermans |
| 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