René's URL Explorer Experiment


Title: Support for setting Input Signals programmatically given a directive instance · Issue #54782 · angular/angular · GitHub

Open Graph Title: Support for setting Input Signals programmatically given a directive instance · Issue #54782 · angular/angular

X Title: Support for setting Input Signals programmatically given a directive instance · Issue #54782 · angular/angular

Description: Which @angular/* package(s) are relevant/related to the feature request? core Description With Input signals they are read-only which forces any consumer of the component to have to set the Inputs through the template. For some situation...

Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description With Input signals they are read-only which forces any consumer of the component to have to set the Inputs ...

X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description With Input signals they are read-only which forces any consumer of the component to have to set the Inputs ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for setting Input Signals programmatically given a directive instance","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncore\n\n### Description\n\nWith Input signals they are read-only which forces any consumer of the component to have to set the Inputs through the template.   For some situations with a parent/child relationship (such as projected content) the parent needs to be able to programmatically set values of the Inputs as they don't have access to set the template bindings.\r\n\r\nAs a component library author there are often cases where we allow something like an `icon` component to be projected.  The `icon` component has an input that allows several sizes.  When the `icon` is used in a specific component in a projection slot that component can query through a `ContentChildren` query.  That component can further set the value of the `@Input` to \"enforce\" a given size.  This \"parent\" component can't set the value through the template bindings as it doesn't have template access to projected content, just component class instances.\r\n\r\nHere's a non-working example of where a `parent` component allows projected `icon` components.  It is trying to query for `icon` content and then set the `size` input.  We've been able to accomplish in the past with `@Inputs` and the getter/setter pattern.  We'd love to be able to move to Input signals but this blocks us.\r\n\r\nhttps://stackblitz.com/edit/stackblitz-starters-g5jzxx?file=src%2Fcomponents%2Fparent%2Fparent.component.ts\r\n\r\n\n\n### Proposed solution\n\nSome way for consumers to set the value of an Input programmatically.  I realize they are read-only but this breaks the notion of a component not knowing how it is consumed and used.  Consumers are allowed to set Inputs through the template OR through the component class instance with a reference.  \n\n### Alternatives considered\n\nWe can continue to use a getter/setter syntax to fake Input signals.  Something like this:\r\n\r\n```\r\n@Input() get size(): number {\r\n  return this._size;\r\n}\r\n\r\nset size(value: number) {\r\n   this._size.set(value);\r\n}\r\nprivate _size = signal();\r\n\r\n```\r\n\r\nIt would be nicer and easier to maintain if we can utilize Input signals programmatically. \r\n\r\n\r\nModel Inputs are also a potential option\r\n\r\nI don't feel that the `Model` inputs are the solution here as that would mean all of our Inputs would have to be Model inputs because as component library authors we don't know how a consumer will access our Inputs (via template or programmatically).  Whereas Model inputs more feels like it's trying to solve ControlValueAccessor stuff and not necessarily meant for this. ","author":{"url":"https://github.com/Fernker","@type":"Person","name":"Fernker"},"datePublished":"2024-03-08T17:01:49Z","url":"https://github.com/angular/angular/issues/54782"}

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:631f94c9-6138-5018-cbdd-75ba6430137f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id885E:2C4BED:E9965D:129EF67:6B010A8C
html-safe-nonce09b0673e8b7acc8c4295f400b5078ca2bcab14a5bc1629e0bf8c72549c5a79d5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODVFOjJDNEJFRDpFOTk2NUQ6MTI5RUY2Nzo2QjAxMEE4QyIsInZpc2l0b3JfaWQiOiIyNDA5OTYwNTU1OTMxNTY4NzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbf50febd201ee43371d875d542d550336d5dcd4ac5f7b5487a97dc2e6d028699
hovercard-subject-tagissue:2176427239
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/54782/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1efe3bed32af8ea7f734202175a0ae904b70e716b987e3f4a6368d02352ab7c0/angular/angular/issues/54782
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1efe3bed32af8ea7f734202175a0ae904b70e716b987e3f4a6368d02352ab7c0/angular/angular/issues/54782
og:image:altWhich @angular/* package(s) are relevant/related to the feature request? core Description With Input signals they are read-only which forces any consumer of the component to have to set the Inputs ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFernker
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/54782#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F54782
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%2F54782
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/54782
Reloadhttps://github.com/angular/angular/issues/54782
Reloadhttps://github.com/angular/angular/issues/54782
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/54782
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/54782
Support for setting Input Signals programmatically given a directive instancehttps://github.com/angular/angular/issues/54782#top
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
cross-cutting: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20signals%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/Fernker
Fernkerhttps://github.com/Fernker
on Mar 8, 2024https://github.com/angular/angular/issues/54782#issue-2176427239
https://stackblitz.com/edit/stackblitz-starters-g5jzxx?file=src%2Fcomponents%2Fparent%2Fparent.component.tshttps://stackblitz.com/edit/stackblitz-starters-g5jzxx?file=src%2Fcomponents%2Fparent%2Fparent.component.ts
Nexthttps://github.com/angular/angular/issues/54782?timeline_page=1
https://github.com/Harpush
Harpushhttps://github.com/Harpush
on Mar 8, 2024https://github.com/angular/angular/issues/54782#issuecomment-1986193102
#47398https://github.com/angular/angular/issues/47398
https://github.com/Fernker
Fernkerhttps://github.com/Fernker
on Mar 8, 2024https://github.com/angular/angular/issues/54782#issuecomment-1986354075
@Harpushhttps://github.com/Harpush
https://github.com/Harpush
Harpushhttps://github.com/Harpush
on Mar 8, 2024https://github.com/angular/angular/issues/54782#issuecomment-1986471127
@Harpushhttps://github.com/Harpush
https://github.com/Fernker
Fernkerhttps://github.com/Fernker
on Mar 8, 2024https://github.com/angular/angular/issues/54782#issuecomment-1986493206
https://github.com/Harpush
Harpushhttps://github.com/Harpush
on Mar 8, 2024https://github.com/angular/angular/issues/54782#issuecomment-1986508222
https://github.com/Fernker
Fernkerhttps://github.com/Fernker
on Mar 8, 2024https://github.com/angular/angular/issues/54782#issuecomment-1986543656
sonukapoorhttps://github.com/sonukapoor
cross-cutting: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20signals%22
on Mar 10, 2024https://github.com/angular/angular/issues/54782#event-12066419861
https://github.com/RobbyRabbitman
RobbyRabbitmanhttps://github.com/RobbyRabbitman
on Mar 15, 2024https://github.com/angular/angular/issues/54782#issuecomment-1999576090
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
on Mar 27, 2024https://github.com/angular/angular/issues/54782#event-12270228558
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Mar 27, 2024https://github.com/angular/angular/issues/54782#event-12270229531
https://github.com/alxhub
alxhubhttps://github.com/alxhub
on Mar 28, 2024https://github.com/angular/angular/issues/54782#issuecomment-2025276082
@RobbyRabbitmanhttps://github.com/RobbyRabbitman
isn't public APIhttps://github.com/angular/angular/blob/main/docs/PUBLIC_API.md?plain=1#L38
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
core: inputs / outputshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20inputs%20%2F%20outputs%22
on Jun 17, 2024https://github.com/angular/angular/issues/54782#event-13186261745
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Sep 11, 2024https://github.com/angular/angular/issues/54782#event-14214158314
https://github.com/thaoula
thaoulahttps://github.com/thaoula
on Dec 19, 2024https://github.com/angular/angular/issues/54782#issuecomment-2552628488
@alxhubhttps://github.com/alxhub
@RobbyRabbitmanhttps://github.com/RobbyRabbitman
https://stackblitz.com/edit/stackblitz-starters-jxjmiswb?file=src%2Fmain.tshttps://stackblitz.com/edit/stackblitz-starters-jxjmiswb?file=src%2Fmain.ts
NGSELECThttps://github.com/ng-select/ng-select
#47398 (comment)https://github.com/angular/angular/issues/47398#issuecomment-2552594369
https://github.com/DaSchTour
DaSchTourhttps://github.com/DaSchTour
on Dec 27, 2024https://github.com/angular/angular/issues/54782#issuecomment-2563488762
https://github.com/hakimio
hakimiohttps://github.com/hakimio
on Nov 25, 2025https://github.com/angular/angular/issues/54782#issuecomment-3577450481
@splincodehttps://github.com/splincode
things like thishttps://medium.com/netanelbasal/why-directives-are-the-go-to-choice-for-select-component-options-reuse-in-angular-36feffbcc7da
https://github.com/mauriziocescon
mauriziocesconhttps://github.com/mauriziocescon
on Nov 25, 2025https://github.com/angular/angular/issues/54782#issuecomment-3577674247
Feature: Hostless components #18877https://github.com/angular/angular/issues/18877
https://stackblitz.com/edit/stackblitz-starters-gvt2ylbohttps://stackblitz.com/edit/stackblitz-starters-gvt2ylbo
https://github.com/Ketec
Ketechttps://github.com/Ketec
on Nov 25, 2025https://github.com/angular/angular/issues/54782#issuecomment-3577745576
https://github.com/Erbenos
Erbenoshttps://github.com/Erbenos
on Nov 25, 2025https://github.com/angular/angular/issues/54782#issuecomment-3577849027
https://github.com/mauriziocescon
mauriziocesconhttps://github.com/mauriziocescon
on Nov 25, 2025https://github.com/angular/angular/issues/54782#issuecomment-3577850013
https://stackblitz.com/edit/stackblitz-starters-y2d9ac6d?file=src%2Fmain.tshttps://stackblitz.com/edit/stackblitz-starters-y2d9ac6d?file=src%2Fmain.ts
https://github.com/splincode
splincodehttps://github.com/splincode
on Nov 26, 2025https://github.com/angular/angular/issues/54782#issuecomment-3579215825
@splincodehttps://github.com/splincode
things like thishttps://medium.com/netanelbasal/why-directives-are-the-go-to-choice-for-select-component-options-reuse-in-angular-36feffbcc7da
@hakimiohttps://github.com/hakimio
https://github.com/hakimio
hakimiohttps://github.com/hakimio
on Nov 26, 2025https://github.com/angular/angular/issues/54782#issuecomment-3580545470
@hakimiohttps://github.com/hakimio
@alxhubhttps://github.com/alxhub
https://github.com/pburgmer
pburgmerhttps://github.com/pburgmer
on Nov 26, 2025https://github.com/angular/angular/issues/54782#issuecomment-3580831688
@alxhubhttps://github.com/alxhub
https://github.com/MillerSvt
MillerSvthttps://github.com/MillerSvt
on Nov 26, 2025https://github.com/angular/angular/issues/54782#issuecomment-3580860579
https://github.com/waterplea
waterpleahttps://github.com/waterplea
on Nov 26, 2025https://github.com/angular/angular/issues/54782#issuecomment-3580876781
@MillerSvthttps://github.com/MillerSvt
#50510https://github.com/angular/angular/issues/50510
https://github.com/Ketec
Ketechttps://github.com/Ketec
on Nov 26, 2025https://github.com/angular/angular/issues/54782#issuecomment-3581285657
sdrozdsaphttps://github.com/sdrozdsap
on Nov 27, 2025https://github.com/angular/angular/issues/54782#event-21219069800
fix: Workaround for 'ariaLabelDropdown' input signal (#20862)https://github.com/SAP/spartacus/commit/2788f0821a9caafd35a78bcc34a0c6c8107efea9
#20862https://github.com/SAP/spartacus/pull/20862
2788f08https://github.com/SAP/spartacus/commit/2788f0821a9caafd35a78bcc34a0c6c8107efea9
https://github.com/montella1507
montella1507https://github.com/montella1507
on Dec 1, 2025https://github.com/angular/angular/issues/54782#issuecomment-3596683124
https://angular.dev/api/forms/signals/FormUiControlhttps://angular.dev/api/forms/signals/FormUiControl
JeanMechehttps://github.com/JeanMeche
New input should be writable from ts. #69496https://github.com/angular/angular/issues/69496
on Jun 24, 2026https://github.com/angular/angular/issues/54782#event-27137538976
https://github.com/LoaderB0T
LoaderB0Thttps://github.com/LoaderB0T
on Oct 21, 2026https://github.com/angular/angular/issues/54782#issuecomment-6313368219
jighttps://github.com/awdlab/jig
#55082https://github.com/angular/angular/issues/55082
@inputhttps://github.com/input
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/54782
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/54782
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
cross-cutting: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20signals%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.