René's URL Explorer Experiment


Title: SkipSelf annotation to get parent component Injector no longer working in Ivy (Angular 9 rc.9) · Issue #34819 · angular/angular · GitHub

Open Graph Title: SkipSelf annotation to get parent component Injector no longer working in Ivy (Angular 9 rc.9) · Issue #34819 · angular/angular

X Title: SkipSelf annotation to get parent component Injector no longer working in Ivy (Angular 9 rc.9) · Issue #34819 · angular/angular

Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, with Angular 8 this was still possible. Description I have a component B that is a child of component A. With previous Angular versions...

Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, with Angular 8 this was still possible. Description I have a component B that is a child of com...

X Description: 🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, with Angular 8 this was still possible. Description I have a component B that is a child of com...

Opengraph URL: https://github.com/angular/angular/issues/34819

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SkipSelf annotation to get parent component Injector no longer working in Ivy (Angular 9 rc.9)","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/core\r\n\r\n### Is this a regression?\r\nYes, with Angular 8 this was still possible.\r\n\r\n### Description\r\nI have a component B that is a child of component A. With previous Angular versions I was able to inject the `Injector` of component A into component B by simply using the `@SkipSelf` annotation on the injected service. With that, I could then resolve services in the context of the parent component.\r\n\r\nIn my use case, both A and B provide the same injection token with different fixed values and component B needs to know what this value was for its parent component.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://stackblitz.com/edit/angular-parent-injector-gx5pha\r\n\r\nThe example on StackBlitz is of course in Angular 8 (since I can't seem to do Angular 9 rc projects) and works as expected. The output on the console is:\r\n\r\n\u003cpre>\u003ccode>\r\nthis is \"HELLO COMPONENT\" and parent has name \"THIS IS ROOT\"\r\nthis is \"HELLO COMPONENT\" and parent has name \"THIS IS ROOT\"\r\n\u003c/code>\u003c/pre>\r\n\r\nWhen I download the example and upgrade it to Angular 9 rc.9 I get different output:\r\n\r\n\u003cpre>\u003ccode>\r\nthis is \"HELLO COMPONENT\" and parent has name \"THIS IS ROOT\"\r\nthis is \"HELLO COMPONENT\" and parent has name \"HELLO COMPONENT\"\r\n\u003c/code>\u003c/pre>\r\n\r\nThe second line is produced with the parent `Injector` injection approach.\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\nI tested this with Angular 9 rc.7, rc.8 and rc.9 and the example fails in all of them.\r\n\r\n**Anything else relevant?**\r\nIn the past I have tried other aproaches to solve this issue, one of them was to use the `Injector.get` method and specifying the `InjectFlags` argument as documented in the [Injector](https://angular.io/api/core/Injector). It seems that in all versions of Angular (that I tested), the injector instance that I get when requesting an `Injector` on a component simply _ignores_ the inject flags - in the source code I can see that the method simply does not use this argument. Somehow I find this very weird since the documentation does not seem to mention that.","author":{"url":"https://github.com/elca-lan","@type":"Person","name":"elca-lan"},"datePublished":"2020-01-16T19:50:18Z","url":"https://github.com/angular/angular/issues/34819"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4556d72a-b005-af55-1385-a50e6b5ad742
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD236:134361:14B81E3:1B473F6:6B012559
html-safe-noncebb414907ded86e11462e4ddab2e5a55b91d120b7bab428da5eb02a9252f2eb6b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjM2OjEzNDM2MToxNEI4MUUzOjFCNDczRjY6NkIwMTI1NTkiLCJ2aXNpdG9yX2lkIjoiODQyNjQ0NjU5MzkzMDc4NjE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd5af792e38a7b12c3260ed85ede2fbbcb090ee42e78c9efbaa236b26b9f71cbe
hovercard-subject-tagissue:551018154
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/34819/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5fa0683cd1833d0de8dd6db1a5d7bb207ed88011610cfe7f9579accfbd75a3e0/angular/angular/issues/34819
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5fa0683cd1833d0de8dd6db1a5d7bb207ed88011610cfe7f9579accfbd75a3e0/angular/angular/issues/34819
og:image:alt🐞 bug report Affected Package The issue is caused by package @angular/core Is this a regression? Yes, with Angular 8 this was still possible. Description I have a component B that is a child of com...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameelca-lan
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/34819#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F34819
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F34819
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/34819
Reloadhttps://github.com/angular/angular/issues/34819
Reloadhttps://github.com/angular/angular/issues/34819
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/34819
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/34819
SkipSelf annotation to get parent component Injector no longer working in Ivy (Angular 9 rc.9)https://github.com/angular/angular/issues/34819#top
https://github.com/AndrewKushnir
P2The issue is important to a large percentage of users, with a workaroundhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P2%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: dihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20di%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
workaround4: nonehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround4%3A%20none%22
v9.x-candidateshttps://github.com/angular/angular/milestone/89
https://github.com/elca-lan
elca-lanhttps://github.com/elca-lan
on Jan 16, 2020https://github.com/angular/angular/issues/34819#issue-551018154
https://stackblitz.com/edit/angular-parent-injector-gx5phahttps://stackblitz.com/edit/angular-parent-injector-gx5pha
Injectorhttps://angular.io/api/core/Injector
Nexthttps://github.com/angular/angular/issues/34819?timeline_page=1
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Jan 16, 2020https://github.com/angular/angular/issues/34819#issuecomment-575319881
angular/packages/core/src/render3/di.tshttps://github.com/angular/angular/blob/1a0ee18d62b5bbe1050ed257abd7707899af9514/packages/core/src/render3/di.ts#L349-L352
1a0ee18https://github.com/angular/angular/commit/1a0ee18d62b5bbe1050ed257abd7707899af9514
angular/packages/core/src/render3/di.tshttps://github.com/angular/angular/blob/1a0ee18d62b5bbe1050ed257abd7707899af9514/packages/core/src/render3/di.ts#L337-L347
1a0ee18https://github.com/angular/angular/commit/1a0ee18d62b5bbe1050ed257abd7707899af9514
AndrewKushnirhttps://github.com/AndrewKushnir
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
comp: ivyhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20ivy%22
on Jan 16, 2020https://github.com/angular/angular/issues/34819#event-2955870432
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jan 16, 2020https://github.com/angular/angular/issues/34819#event-2955870512
AndrewKushnirhttps://github.com/AndrewKushnir
needsTriagehttps://github.com/angular/angular/milestone/83
v9-candidateshttps://github.com/angular/angular/milestone/89
on Jan 16, 2020https://github.com/angular/angular/issues/34819#event-2955871337
JoostKhttps://github.com/JoostK
severity5: ivy-compathttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity5%3A%20ivy-compat%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
workaround4: nonehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround4%3A%20none%22
on Jan 16, 2020https://github.com/angular/angular/issues/34819#event-2955872253
https://github.com/elca-lan
elca-lanhttps://github.com/elca-lan
on Jan 16, 2020https://github.com/angular/angular/issues/34819#issuecomment-575339252
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Jan 16, 2020https://github.com/angular/angular/issues/34819#issuecomment-575339753
@elca-lanhttps://github.com/elca-lan
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Jan 17, 2020https://github.com/angular/angular/issues/34819#issuecomment-575416289
@elca-lanhttps://github.com/elca-lan
@JoostKhttps://github.com/JoostK
PR in progresshttps://github.com/angular/angular/pull/34554
@SkipSelfhttps://github.com/SkipSelf
AndrewKushnirhttps://github.com/AndrewKushnir
on Jan 17, 2020https://github.com/angular/angular/issues/34819#event-2956627809
https://github.com/Shijir
Shijirhttps://github.com/Shijir
on Jan 17, 2020https://github.com/angular/angular/issues/34819#issuecomment-575432271
#34066https://github.com/angular/angular/issues/34066
https://github.com/Shijir
Shijirhttps://github.com/Shijir
on Jan 17, 2020https://github.com/angular/angular/issues/34819#issuecomment-575445139
@AndrewKushnirhttps://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
on Jan 17, 2020https://github.com/angular/angular/issues/34819#event-2959504146
alxhubhttps://github.com/alxhub
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
severity5: ivy-compathttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity5%3A%20ivy-compat%22
on Feb 10, 2020https://github.com/angular/angular/issues/34819#event-3023742785
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: dihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20di%22
on Mar 17, 2020https://github.com/angular/angular/issues/34819#event-3136064367
https://github.com/mehmet-erim
mehmet-erimhttps://github.com/mehmet-erim
on Apr 3, 2020https://github.com/angular/angular/issues/34819#issuecomment-608641333
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Apr 3, 2020https://github.com/angular/angular/issues/34819#issuecomment-608679969
@mehmet-erimhttps://github.com/mehmet-erim
https://github.com/FDIM
FDIMhttps://github.com/FDIM
on Apr 6, 2020https://github.com/angular/angular/issues/34819#issuecomment-609789028
karahttps://github.com/kara
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on May 29, 2020https://github.com/angular/angular/issues/34819#event-3389054455
jelbournhttps://github.com/jelbourn
P2The issue is important to a large percentage of users, with a workaroundhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P2%22
on Oct 1, 2020https://github.com/angular/angular/issues/34819#event-3830184747
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Nov 6, 2020https://github.com/angular/angular/issues/34819#issuecomment-723204932
#39464https://github.com/angular/angular/pull/39464
AndrewKushnirhttps://github.com/AndrewKushnir
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 6, 2020https://github.com/angular/angular/issues/34819#event-3968223992
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Dec 7, 2020https://github.com/angular/angular/issues/34819#issuecomment-740030321
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Dec 7, 2020https://github.com/angular/angular/issues/34819#event-4080554899
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/34819
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/34819
AndrewKushnirhttps://github.com/AndrewKushnir
P2The issue is important to a large percentage of users, with a workaroundhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P2%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: dihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20di%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
workaround4: nonehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround4%3A%20none%22
v9.x-candidateshttps://github.com/angular/angular/milestone/89
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.