René's URL Explorer Experiment


Title: Resurrect discussion: bindToComponentInputs=true breaks default/initial value of field with @Input() · Issue #63835 · angular/angular · GitHub

Open Graph Title: Resurrect discussion: bindToComponentInputs=true breaks default/initial value of field with @Input() · Issue #63835 · angular/angular

X Title: Resurrect discussion: bindToComponentInputs=true breaks default/initial value of field with @Input() · Issue #63835 · angular/angular

Description: Describe the problem that you experienced The initial issue, #52946, has long since been locked. However I do not believe the discussion has been concluded, or at least there is more documentation to be updated. I believe it to still be ...

Open Graph Description: Describe the problem that you experienced The initial issue, #52946, has long since been locked. However I do not believe the discussion has been concluded, or at least there is more documentation ...

X Description: Describe the problem that you experienced The initial issue, #52946, has long since been locked. However I do not believe the discussion has been concluded, or at least there is more documentation ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Resurrect discussion: bindToComponentInputs=true breaks default/initial value of field with @Input()","articleBody":"### Describe the problem that you experienced\n\nThe initial issue, #52946, has long since been locked. However I do not believe the discussion has been concluded, or at least there is more documentation to be updated. I believe it to still be intentional, though unexpected behavior that optional inputs with a default value that are _not_ in the router config have their values set to undefined. That said, some excellent workarounds were provided [here](https://github.com/angular/angular/issues/52946#issuecomment-2091496673) and [here](https://github.com/angular/angular/issues/52946#issuecomment-2198484477).\n\nI admit that some of the more technical explanations and rational for the current behavior kindly provided by @atscott went over my head to a degree, but I still believe this to be an ongoing issue. At one point he stated that\n\n> Setting up an input with an initial value, i.e.@Input() readonly = true;, is an initial value only to be used when the owner of the component has not (yet) bound a value. It is not a default value, but an initial value.\n\nHowever the documentation does not make any mention of this. Indeed, [the documentation for inputs](https://angular.dev/guide/components/inputs#reading-inputs) explicitly refers to this as a _default value_. There is no mention in the documentation of the value being overwritten when the component is used in a routing context.\n\nAt minimum, I believe the documentation for input signals should be updated to reflect this (I first stumbled upon this issue Googling why my default value was undefined, without having any suspicion of router issues). Alternatively, I think there was a [good suggestion](https://github.com/angular/angular/issues/52946#issuecomment-2455012957) to allow developers to include a strategy for an input, though I don't know what this would look like.\n\n### Describe what you were looking for in the documentation\n\n[This page](https://angular.dev/guide/components/inputs#reading-inputs) should indicate that the default value is not necessarily a default value, but an _initial_ value, as well as explaining its interaction with `withComponentInputBinding`/usage in a router context, if not changing implementation.","author":{"url":"https://github.com/aYorky","@type":"Person","name":"aYorky"},"datePublished":"2025-09-16T14:30:16Z","url":"https://github.com/angular/angular/issues/63835"}

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:57481918-6672-7c59-0fa5-79c7edf0c323
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8528:15F7F4:CA1242:1054A6C:6B064025
html-safe-nonceb9490234cb3f8e92bc9f1b4a7d3d495d176aee09077e97a575d6680e12fc4ecd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTI4OjE1RjdGNDpDQTEyNDI6MTA1NEE2Qzo2QjA2NDAyNSIsInZpc2l0b3JfaWQiOiIyODAwNjA4ODg1NDMyNzk1MTczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac297a2083b072da8ef655d103234dd1032e6c39c33514b97ab392b1c62b4ef997
hovercard-subject-tagissue:3422551795
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/63835/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4216777bad64a3644b3306995bd938d27e4f939722baf0220fad938a8ad53f01/angular/angular/issues/63835
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4216777bad64a3644b3306995bd938d27e4f939722baf0220fad938a8ad53f01/angular/angular/issues/63835
og:image:altDescribe the problem that you experienced The initial issue, #52946, has long since been locked. However I do not believe the discussion has been concluded, or at least there is more documentation ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaYorky
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
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
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/63835#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F63835
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%2F63835
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/63835
Reloadhttps://github.com/angular/angular/issues/63835
Reloadhttps://github.com/angular/angular/issues/63835
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/63835
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/63835
#68561https://github.com/angular/angular/pull/68561
Resurrect discussion: bindToComponentInputs=true breaks default/initial value of field with @Input()https://github.com/angular/angular/issues/63835#top
#68561https://github.com/angular/angular/pull/68561
area: docshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/aYorky
aYorkyhttps://github.com/aYorky
on Sep 16, 2025https://github.com/angular/angular/issues/63835#issue-3422551795
#52946https://github.com/angular/angular/issues/52946
herehttps://github.com/angular/angular/issues/52946#issuecomment-2091496673
herehttps://github.com/angular/angular/issues/52946#issuecomment-2198484477
@atscotthttps://github.com/atscott
@inputhttps://github.com/input
the documentation for inputshttps://angular.dev/guide/components/inputs#reading-inputs
good suggestionhttps://github.com/angular/angular/issues/52946#issuecomment-2455012957
This pagehttps://angular.dev/guide/components/inputs#reading-inputs
JeanMechehttps://github.com/JeanMeche
area: docshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%22
on Sep 16, 2025https://github.com/angular/angular/issues/63835#event-19728511936
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Sep 16, 2025https://github.com/angular/angular/issues/63835#event-19728512492
JeanMechehttps://github.com/JeanMeche
on Sep 16, 2025https://github.com/angular/angular/issues/63835#event-19729979417
docs: Mention router input binding cavert in component input guidehttps://github.com/JeanMeche/angular/commit/7d31333537cba6d6e554ab197a0c4efd0fb6f9d5
https://docs.github.com/articles/closing-issues-via-commit-messages
7d31333https://github.com/JeanMeche/angular/commit/7d31333537cba6d6e554ab197a0c4efd0fb6f9d5
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 16, 2025https://github.com/angular/angular/issues/63835#issuecomment-3299474767
herehttps://angular.dev/guide/routing/common-router-tasks#optional-use-a-default-value
withComponentInputBinding function itselfhttps://angular.dev/api/router/withComponentInputBinding
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Sep 16, 2025https://github.com/angular/angular/issues/63835#issuecomment-3299494163
https://github.com/aYorky
aYorkyhttps://github.com/aYorky
on Sep 16, 2025https://github.com/angular/angular/issues/63835#issuecomment-3299511052
@atscotthttps://github.com/atscott
@JeanMechehttps://github.com/JeanMeche
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Sep 16, 2025https://github.com/angular/angular/issues/63835#issuecomment-3299821773
#58940https://github.com/angular/angular/issues/58940
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Sep 16, 2025https://github.com/angular/angular/issues/63835#event-19732822168
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 17, 2025https://github.com/angular/angular/issues/63835#issuecomment-3413311356
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 17, 2025https://github.com/angular/angular/issues/63835#event-20331472138
atscotthttps://github.com/atscott
on May 5, 2026https://github.com/angular/angular/issues/63835#event-25185190680
fix(router): Only bind 'undefined' to components if input was previou…https://github.com/atscott/angular/commit/99e278cbf66da4c6cafedbcbf0cbf42c8bea28b4
https://docs.github.com/articles/closing-issues-via-commit-messages
99e278chttps://github.com/atscott/angular/commit/99e278cbf66da4c6cafedbcbf0cbf42c8bea28b4
fix(router): Only bind 'undefined' to components if input was previou…https://github.com/atscott/angular/commit/6c567c26781a93318e94be815ac16903c40020a1
https://docs.github.com/articles/closing-issues-via-commit-messages
6c567c2https://github.com/atscott/angular/commit/6c567c26781a93318e94be815ac16903c40020a1
waterpleahttps://github.com/waterplea
Router with inputs should not reset default input values when parameter is missing #70269https://github.com/angular/angular/issues/70269
on Aug 19, 2026https://github.com/angular/angular/issues/63835#event-29677169074
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/63835
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/63835
area: docshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%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

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.