René's URL Explorer Experiment


Title: inject of ElementRef does not use generic type for the returned type inference · Issue #53894 · angular/angular · GitHub

Open Graph Title: inject of ElementRef does not use generic type for the returned type inference · Issue #53894 · angular/angular

X Title: inject of ElementRef does not use generic type for the returned type inference · Issue #53894 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Consider the example injection of the ElementRef with a specified generic type: // OK: hostEl is of type ElementRef, as expecte...

Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Consider the example injection of the ElementRef with a specified generic type: // OK: hostEl is of ...

X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Consider the example injection of the ElementRef with a specified generic type: // OK: hostEl is of ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inject of ElementRef does not use generic type for the returned type inference","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncore\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\nConsider the example injection of the `ElementRef` with a specified generic type:\r\n\r\n```typescript\r\n  // OK: hostEl is of type ElementRef\u003cHTMLElement>, as expected\r\n  hostElExplicit = inject\u003cElementRef\u003cHTMLElement>>(ElementRef);\r\n\r\n  // KO: hostEl is of type ElementRef\u003cany>, expecting ElementRef\u003cHTMLElement>\r\n  hostElInfered = inject(ElementRef\u003cHTMLElement>);\r\n```\r\n\r\nIdeally ` inject(ElementRef\u003cHTMLElement>)` would have the return type of `ElementRef\u003cHTMLElement>`.\r\n\r\nThe fix is likely around the type definition for the `ProviderToken`.\r\n\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nhttps://stackblitz.com/edit/stackblitz-starters-p38xn9\r\n\r\n","author":{"url":"https://github.com/pkozlowski-opensource","@type":"Person","name":"pkozlowski-opensource"},"datePublished":"2024-01-12T11:40:32Z","url":"https://github.com/angular/angular/issues/53894"}

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:5573b90a-ae0d-fdc3-00e1-6d6d01a4bae2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAFFC:15F7F4:99CE12:C722F2:6B0632A0
html-safe-nonced02a90f9bf17706f84c4a6c1c7898dc0801ed3972a61b07b7bf05ddd8be1838a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkZDOjE1RjdGNDo5OUNFMTI6QzcyMkYyOjZCMDYzMkEwIiwidmlzaXRvcl9pZCI6IjM0NjMwODQzNzU1MjI4MDIyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9a05c2c38d63272babbebe68f10e6ba1a811f0b4745534d92651d67eb86eb369
hovercard-subject-tagissue:2078649016
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/53894/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b817e7d453fb731571603b0273da155ec60351a3bd8746760b57c3e1141dada6/angular/angular/issues/53894
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b817e7d453fb731571603b0273da155ec60351a3bd8746760b57c3e1141dada6/angular/angular/issues/53894
og:image:altWhich @angular/* package(s) are the source of the bug? core Is this a regression? No Description Consider the example injection of the ElementRef with a specified generic type: // OK: hostEl is of ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepkozlowski-opensource
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
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
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/53894#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F53894
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%2F53894
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/53894
Reloadhttps://github.com/angular/angular/issues/53894
Reloadhttps://github.com/angular/angular/issues/53894
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues831 (831)https://github.com/angular/angular/issues
Pull requests122 (122)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/53894
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/53894
inject of ElementRef does not use generic type for the returned type inferencehttps://github.com/angular/angular/issues/53894#top
P3https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: corehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
core: dihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20di%22
cross-cutting: typeshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20types%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Jan 12, 2024https://github.com/angular/angular/issues/53894#issue-2078649016
https://stackblitz.com/edit/stackblitz-starters-p38xn9https://stackblitz.com/edit/stackblitz-starters-p38xn9
Nexthttps://github.com/angular/angular/issues/53894?timeline_page=1
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
area: corehttps://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
cross-cutting: typeshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20types%22
on Jan 12, 2024https://github.com/angular/angular/issues/53894#event-11468074208
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jan 12, 2024https://github.com/angular/angular/issues/53894#event-11468074482
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Jan 12, 2024https://github.com/angular/angular/issues/53894#issuecomment-1888977976
https://stackblitz.com/edit/stackblitz-starters-ss5dmshttps://stackblitz.com/edit/stackblitz-starters-ss5dms
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
P3https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
on Jan 12, 2024https://github.com/angular/angular/issues/53894#event-11469814429
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Jan 12, 2024https://github.com/angular/angular/issues/53894#event-11469814729
https://github.com/eneajaho
eneajahohttps://github.com/eneajaho
on Jan 12, 2024https://github.com/angular/angular/issues/53894#issuecomment-1889528222
#48126https://github.com/angular/angular/issues/48126
#48408https://github.com/angular/angular/pull/48408
https://github.com/robertIsaac
robertIsaachttps://github.com/robertIsaac
on Mar 3, 2024https://github.com/angular/angular/issues/53894#issuecomment-1975272672
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Mar 3, 2024https://github.com/angular/angular/issues/53894#issuecomment-1975274965
@robertIsaachttps://github.com/robertIsaac
https://github.com/robertIsaac
robertIsaachttps://github.com/robertIsaac
on Mar 3, 2024https://github.com/angular/angular/issues/53894#issuecomment-1975276117
@robertIsaachttps://github.com/robertIsaac
https://github.com/LayZeeDK
LayZeeDKhttps://github.com/LayZeeDK
on Aug 15, 2024https://github.com/angular/angular/issues/53894#issuecomment-2290965428
angular/packages/core/src/di/injector_compatibility.tshttps://github.com/angular/angular/blob/5537bf802f8eda54ff7572905cf3bb2fc0e0e431/packages/core/src/di/injector_compatibility.ts#L144
5537bf8https://github.com/angular/angular/commit/5537bf802f8eda54ff7572905cf3bb2fc0e0e431
JeanMechehttps://github.com/JeanMeche
on Nov 3, 2026https://github.com/angular/angular/issues/53894#event-35063145983
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/c7beaf58f969c67b538e1eefadb071ea845005cd
https://docs.github.com/articles/closing-issues-via-commit-messages
c7beaf5https://github.com/JeanMeche/angular/commit/c7beaf58f969c67b538e1eefadb071ea845005cd
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/454585c893e9a8c3055edf901354962f504b21dc
https://docs.github.com/articles/closing-issues-via-commit-messages
454585chttps://github.com/JeanMeche/angular/commit/454585c893e9a8c3055edf901354962f504b21dc
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/704d1bd2d54d42aae2f02b00b59388eb2e097508
https://docs.github.com/articles/closing-issues-via-commit-messages
704d1bdhttps://github.com/JeanMeche/angular/commit/704d1bd2d54d42aae2f02b00b59388eb2e097508
JeanMechehttps://github.com/JeanMeche
on Nov 11, 2026https://github.com/angular/angular/issues/53894#event-35747909623
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/91969de5748029986454ddf4847a364d2e4451c5
https://docs.github.com/articles/closing-issues-via-commit-messages
91969dehttps://github.com/JeanMeche/angular/commit/91969de5748029986454ddf4847a364d2e4451c5
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/a1b5e97c6b4a2fa81fe937060c6c13b51ba83a73
https://docs.github.com/articles/closing-issues-via-commit-messages
a1b5e97https://github.com/JeanMeche/angular/commit/a1b5e97c6b4a2fa81fe937060c6c13b51ba83a73
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/952853b31ee4de00f42ac4bb6fcdd66c26bb1390
https://docs.github.com/articles/closing-issues-via-commit-messages
952853bhttps://github.com/JeanMeche/angular/commit/952853b31ee4de00f42ac4bb6fcdd66c26bb1390
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/7f67dc7f3d64a00543e4343a04e76caabe3786fb
https://docs.github.com/articles/closing-issues-via-commit-messages
7f67dc7https://github.com/JeanMeche/angular/commit/7f67dc7f3d64a00543e4343a04e76caabe3786fb
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/4911874500924e57f7db72937dc8b2e80b439598
https://docs.github.com/articles/closing-issues-via-commit-messages
4911874https://github.com/JeanMeche/angular/commit/4911874500924e57f7db72937dc8b2e80b439598
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/d20037f8c482352c6f373463e74af3038becd7ec
https://docs.github.com/articles/closing-issues-via-commit-messages
d20037fhttps://github.com/JeanMeche/angular/commit/d20037f8c482352c6f373463e74af3038becd7ec
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/01cca4e73793be03c475565a275687ca95f720dd
https://docs.github.com/articles/closing-issues-via-commit-messages
01cca4ehttps://github.com/JeanMeche/angular/commit/01cca4e73793be03c475565a275687ca95f720dd
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/72b3fb5fbf866ef5239a360568a87d0a2daa72a1
https://docs.github.com/articles/closing-issues-via-commit-messages
72b3fb5https://github.com/JeanMeche/angular/commit/72b3fb5fbf866ef5239a360568a87d0a2daa72a1
fix(core): preserve generic type parameters when injecting or queryin…https://github.com/JeanMeche/angular/commit/ada8b0d3a495bf53bf1da4810137c27a252b813a
https://docs.github.com/articles/closing-issues-via-commit-messages
ada8b0dhttps://github.com/JeanMeche/angular/commit/ada8b0d3a495bf53bf1da4810137c27a252b813a
JeanMechehttps://github.com/JeanMeche
on Nov 24, 2026https://github.com/angular/angular/issues/53894#event-37155393295
refactor(core): preserve generic type parameters when injecting or qu…https://github.com/JeanMeche/angular/commit/81d2de193a4c3a5d66bcc9be74831b05628ec3d9
https://docs.github.com/articles/closing-issues-via-commit-messages
81d2de1https://github.com/JeanMeche/angular/commit/81d2de193a4c3a5d66bcc9be74831b05628ec3d9
refactor(core): add g3-only overloads to preserve generic token typeshttps://github.com/JeanMeche/angular/commit/11ef300b945574141950d5a5ea22eec115efd90f
https://docs.github.com/articles/closing-issues-via-commit-messages
11ef300https://github.com/JeanMeche/angular/commit/11ef300b945574141950d5a5ea22eec115efd90f
refactor(core): add g3-only overloads to preserve generic token typeshttps://github.com/JeanMeche/angular/commit/9628aad6bf3c589be3a8d2c8a8b57a4590d6c230
https://docs.github.com/articles/closing-issues-via-commit-messages
9628aadhttps://github.com/JeanMeche/angular/commit/9628aad6bf3c589be3a8d2c8a8b57a4590d6c230
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/53894
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/53894
P3https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: corehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
core: dihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20di%22
cross-cutting: typeshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20types%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.