René's URL Explorer Experiment


Title: Allow host binding to feed inputs to host directives · Issue #50510 · angular/angular · GitHub

Open Graph Title: Allow host binding to feed inputs to host directives · Issue #50510 · angular/angular

X Title: Allow host binding to feed inputs to host directives · Issue #50510 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description If a directive (let's named it ReusableDirective) exposes a required input (foo), and is used as a host directive by another directive (Comp...

Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description If a directive (let's named it ReusableDirective) exposes a required input (foo), and is used as a h...

X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description If a directive (let's named it ReusableDirective) exposes a required input (foo), and is used as...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow host binding to feed inputs to host directives","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\nIf a directive (let's named it `ReusableDirective`) exposes a required input (`foo`), and is used as a host directive by another directive (`ComposedDirective`), then the compiler forces the composed directive to expose the required input. \r\n\r\nThis is problematic when the whole point of the composed directive is precisely to provide a default or computed value for the required input. \r\n\r\nFor example: \r\n\r\n```ts\r\n@Directive({\r\n  selector: '[app-reusable]',\r\n  standalone: true,\r\n})\r\nclass ReusableDirective {\r\n  @Input({ required: true }) foo!: string;\r\n\r\n  // do something useful with foo here, but that's irrelevant\r\n}\r\n\r\n@Directive({\r\n  selector: '[app-composed]',\r\n  standalone: true,\r\n  hostDirectives: [ReusableDirective],\r\n})\r\nclass ComposedDirective {\r\n  constructor(reusable: ReusableDirective) {\r\n    reusable.foo = 'hello';\r\n  }\r\n}\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-85nxmu?description=An%20angular-cli%20project%20based%20on%20@angular/animations,%20@angular/common,%20@angular/compiler,%20@angular/core,%20@angular/forms,%20@angular/platform-browser,%20@angular/platform-browser-dynamic,%20@angular/router,%20core-js,%20rxjs,%20tslib%20and%20zone.js&file=src%2Fmain.ts&title=Angular%20Starter\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```\r\nRequired input 'foo' from host directive ReusableDirective must be exposed.\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```\r\nAngular CLI: 16.0.2\r\nNode: 18.16.0\r\nPackage Manager: yarn 1.22.19\r\nOS: darwin x64\r\n\r\nAngular: 16.0.2\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... localize, platform-browser, platform-browser-dynamic, router\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1600.2\r\n@angular-devkit/build-angular   16.0.2\r\n@angular-devkit/core            16.0.2\r\n@angular-devkit/schematics      16.0.2\r\n@angular/cdk                    16.0.1\r\n@schematics/angular             16.0.2\r\nrxjs                            7.8.1\r\ntypescript                      5.0.4\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\nThis just hit me in a real situation: ng-bootstrap's typeahead directive's `ngbTypeahead` input is marked as requird in the latest version, and we have several custom `fooTypeahead` and `barTypeahead` directives which simply use ngbTypeahead as a host directive and provide this required input.   ","author":{"url":"https://github.com/jnizet","@type":"Person","name":"jnizet"},"datePublished":"2023-05-30T06:29:12Z","url":"https://github.com/angular/angular/issues/50510"}

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:c3651daf-1881-1af3-2709-2c4032c078bc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE50A:22DB35:12317C8:175A130:6B010DED
html-safe-nonce257d488f076263b41d7f22b1389995624f8b298971ea4c8d6975359fc0060678
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTBBOjIyREIzNToxMjMxN0M4OjE3NUExMzA6NkIwMTBERUQiLCJ2aXNpdG9yX2lkIjoiNTI0Nzg3NDMwMTQzNjE2OTcwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7b40c2a16bff4a46e73cacc4e3a5ba734bfd244d02c544b0dad24fd908b9bd44
hovercard-subject-tagissue:1731595275
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/50510/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6a11d32e8e32d4d039b84167311312cec7fb1b1610f9902623e9cb831e8b2ecb/angular/angular/issues/50510
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a11d32e8e32d4d039b84167311312cec7fb1b1610f9902623e9cb831e8b2ecb/angular/angular/issues/50510
og:image:altWhich @angular/* package(s) are the source of the bug? core Is this a regression? No Description If a directive (let's named it ReusableDirective) exposes a required input (foo), and is used as a h...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejnizet
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/50510#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F50510
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%2F50510
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/50510
Reloadhttps://github.com/angular/angular/issues/50510
Reloadhttps://github.com/angular/angular/issues/50510
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/50510
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/50510
Allow host binding to feed inputs to host directiveshttps://github.com/angular/angular/issues/50510#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: host directiveshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20host%20directives%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/jnizet
jnizethttps://github.com/jnizet
on May 30, 2023https://github.com/angular/angular/issues/50510#issue-1731595275
https://stackblitz.com/edit/stackblitz-starters-85nxmu?description=An%20angular-cli%20project%20based%20on%20@angular/animations,%20@angular/common,%20@angular/compiler,%20@angular/core,%20@angular/forms,%20@angular/platform-browser,%20@angular/platform-browser-dynamic,%20@angular/router,%20core-js,%20rxjs,%20tslib%20and%20zone.js&file=src%2Fmain.ts&title=Angular%20Starterhttps://stackblitz.com/edit/stackblitz-starters-85nxmu?description=An%20angular-cli%20project%20based%20on%20@angular/animations,%20@angular/common,%20@angular/compiler,%20@angular/core,%20@angular/forms,%20@angular/platform-browser,%20@angular/platform-browser-dynamic,%20@angular/router,%20core-js,%20rxjs,%20tslib%20and%20zone.js&file=src%2Fmain.ts&title=Angular%20Starter
Nexthttps://github.com/angular/angular/issues/50510?timeline_page=1
https://github.com/jnizet
jnizethttps://github.com/jnizet
on May 30, 2023https://github.com/angular/angular/issues/50510#issuecomment-1567861685
https://github.com/crisbeto
crisbetohttps://github.com/crisbeto
on May 31, 2023https://github.com/angular/angular/issues/50510#issuecomment-1569477528
https://github.com/Harpush
Harpushhttps://github.com/Harpush
on May 31, 2023https://github.com/angular/angular/issues/50510#issuecomment-1569488554
https://github.com/kbrilla
kbrillahttps://github.com/kbrilla
on May 31, 2023https://github.com/angular/angular/issues/50510#issuecomment-1569989876
dylhunnhttps://github.com/dylhunn
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: inputs / outputshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20inputs%20%2F%20outputs%22
on May 31, 2023https://github.com/angular/angular/issues/50510#event-9394663396
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on May 31, 2023https://github.com/angular/angular/issues/50510#event-9394663632
jnizethttps://github.com/jnizet
on Jun 1, 2023https://github.com/angular/angular/issues/50510#event-9398325136
feat: revert some inputs to optionalhttps://github.com/jnizet/ng-bootstrap/commit/b175a7aae976eb804420f90653e9e674d6fbf8b5
b175a7ahttps://github.com/jnizet/ng-bootstrap/commit/b175a7aae976eb804420f90653e9e674d6fbf8b5
feat: revert some inputs to optionalhttps://github.com/jnizet/ng-bootstrap/commit/5175cd46e68ab74e7853aec3ec93d692d5228c91
5175cd4https://github.com/jnizet/ng-bootstrap/commit/5175cd46e68ab74e7853aec3ec93d692d5228c91
maxokorokovhttps://github.com/maxokorokov
on Jun 6, 2023https://github.com/angular/angular/issues/50510#event-9447075088
fix: revert some inputs to optional (#4519)https://github.com/ng-bootstrap/ng-bootstrap/commit/decfe411a54054dd7d7545adb618561d8aa75d6c
#4519https://github.com/ng-bootstrap/ng-bootstrap/pull/4519
decfe41https://github.com/ng-bootstrap/ng-bootstrap/commit/decfe411a54054dd7d7545adb618561d8aa75d6c
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: host directiveshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20host%20directives%22
core: inputs / outputshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20inputs%20%2F%20outputs%22
on Jun 7, 2023https://github.com/angular/angular/issues/50510#event-9457376201
https://github.com/crisbeto
crisbetohttps://github.com/crisbeto
on Jun 7, 2023https://github.com/angular/angular/issues/50510#issuecomment-1581008223
@jnizethttps://github.com/jnizet
https://github.com/alwonder
alwonderhttps://github.com/alwonder
on May 26, 2024https://github.com/angular/angular/issues/50510#issuecomment-2132074088
github-merge-queuehttps://github.com/apps/github-merge-queue
on Feb 3, 2026https://github.com/angular/angular/issues/50510#event-22505727291
feat(202): support angular generator (#203)https://github.com/open-feature/cli/commit/c06c4ba4c3c8f712ea5632d3f7f63c3b66d436c9
#203https://github.com/open-feature/cli/pull/203
c06c4bahttps://github.com/open-feature/cli/commit/c06c4ba4c3c8f712ea5632d3f7f63c3b66d436c9
https://github.com/Ketec
Ketechttps://github.com/Ketec
on Mar 31, 2026https://github.com/angular/angular/issues/50510#issuecomment-4162389633
@inputhttps://github.com/input
https://github.com/Harpush
Harpushhttps://github.com/Harpush
on Apr 2, 2026https://github.com/angular/angular/issues/50510#issuecomment-4176551613
https://github.com/splincode
splincodehttps://github.com/splincode
on Apr 2, 2026https://github.com/angular/angular/issues/50510#issuecomment-4176787961
@componenthttps://github.com/component
@crisbetohttps://github.com/crisbeto
https://github.com/mauriziocescon
mauriziocesconhttps://github.com/mauriziocescon
on Apr 2, 2026https://github.com/angular/angular/issues/50510#issuecomment-4180523486
@Harpushhttps://github.com/Harpush
https://svelte.dev/playground/1556ba91167b4f70a7d0dbc9b29c3a58?version=5.55.1https://svelte.dev/playground/1556ba91167b4f70a7d0dbc9b29c3a58?version=5.55.1
https://github.com/waterplea
waterpleahttps://github.com/waterplea
on Apr 3, 2026https://github.com/angular/angular/issues/50510#issuecomment-4182012471
https://github.com/Harpush
Harpushhttps://github.com/Harpush
on Apr 3, 2026https://github.com/angular/angular/issues/50510#issuecomment-4182556004
https://github.com/EmmanuelRoux
EmmanuelRouxhttps://github.com/EmmanuelRoux
on Apr 3, 2026https://github.com/angular/angular/issues/50510#issuecomment-4182628313
https://github.com/jermowery
jermoweryhttps://github.com/jermowery
on Jun 5, 2026https://github.com/angular/angular/issues/50510#issuecomment-4636066930
https://github.com/crisbeto
crisbetohttps://github.com/crisbeto
on Jun 6, 2026https://github.com/angular/angular/issues/50510#issuecomment-4637677075
https://github.com/waterplea
waterpleahttps://github.com/waterplea
on Jun 6, 2026https://github.com/angular/angular/issues/50510#issuecomment-4637916686
https://github.com/robmanganelly
robmanganellyhttps://github.com/robmanganelly
on Jul 28, 2026https://github.com/angular/angular/issues/50510#issuecomment-5106319763
spartanhttps://spartan.ng/documentation/introduction
https://private-user-images.githubusercontent.com/94765969/627932085-494a0c95-ce4e-4bba-84a1-bde536a636f5.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzE1MTQsIm5iZiI6MTc5NTIzMTIxNCwicGF0aCI6Ii85NDc2NTk2OS82Mjc5MzIwODUtNDk0YTBjOTUtY2U0ZS00YmJhLTg0YTEtYmRlNTM2YTYzNmY1LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDAzMjAxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhNDZiNTYzMzdiNzY4YTM5NTNhN2E0YjQ4YTY2NDM5YjI3MDY0ZTYyYzhiZjQ0NWVkZGNjNjY1OGUxNWM2MzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.wRInxB9gnDPrs_zTxYPky6QkhRXFgWVQX0b6Oe9t52I
https://github.com/waterplea
waterpleahttps://github.com/waterplea
on Jul 29, 2026https://github.com/angular/angular/issues/50510#issuecomment-5120713378
@robmanganellyhttps://github.com/robmanganelly
https://github.com/robmanganelly
robmanganellyhttps://github.com/robmanganelly
on Jul 30, 2026https://github.com/angular/angular/issues/50510#issuecomment-5125273253
https://github.com/nud
nudhttps://github.com/nud
on Oct 19, 2026https://github.com/angular/angular/issues/50510#issuecomment-6270080651
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/50510
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/50510
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: host directiveshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20host%20directives%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.