René's URL Explorer Experiment


Title: Signal Forms: Consider allowing validation in FormValueControl · Issue #65769 · angular/angular · GitHub

Open Graph Title: Signal Forms: Consider allowing validation in FormValueControl · Issue #65769 · angular/angular

X Title: Signal Forms: Consider allowing validation in FormValueControl · Issue #65769 · angular/angular

Description: Which @angular/* package(s) are relevant/related to the feature request? forms Description The signal forms doco on Value transformation contains: ...and handle input events to parse user input back to the storage format but any time use...

Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? forms Description The signal forms doco on Value transformation contains: ...and handle input events to parse user input bac...

X Description: Which @angular/* package(s) are relevant/related to the feature request? forms Description The signal forms doco on Value transformation contains: ...and handle input events to parse user input bac...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Signal Forms: Consider allowing validation in FormValueControl","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\nforms\n\n### Description\n\nThe signal forms doco on [Value transformation](https://angular.dev/guide/forms/signals/custom-controls#value-transformation) contains:\n\n> ...and handle input events to parse user input back to the storage format\n\nbut any time user input is parsed there is the chance of invalid input, and hence errors, so I thought I would be able to add some validation there. But the very next section on Validation integration has a big warning:\n\n> IMPORTANT: Don't implement validation logic in your control.\n\nAnd there seems to be a fundamental gap there:\n\n- The control may need to do validation to convert the user input into the model type.\n- The schema validation can only run once the model type is pushed out via `value`.\n\nSomething as simple as the Currency input example in the docs:\n```\nhandleInput(input: string) {\n  const num = parseFloat(input.replace(/[^0-9.]/g, ''));\n  if (!isNaN(num)) this.value.set(num);\n}\n```\n\n- If the user types a valid number, that is passed up via the `value`.\n- If they then continue typing making it an invalid number, the `value` is not changed and so the control remains valid even through they now have junk in the field.\n- The only options the control has at this point are to clear the value or leave it at the last valid value - there is no way to report what the error is to the parent schema.\n\nI would like to do this:\n```\nhandleInput(input: string) {\n  const num = parseFloat(input.replace(/[^0-9.]/g, ''));\n  if (isNaN(num)) {\n    const msg = `'${input}' is not a valid number.`;\n    // pass msg back to framework validation\n  } else {\n    this.value.set(num);\n  }\n}\n```\n\nChanging the `FormUIControl.errors` to a model signal and allowing the control to pass errors back to its parent would seem to be one solution, although I can imagine there are many implementation details with the timing of when validation is run and what happens if both the schema and the control generate errors.\n\nHere's a more complete example for a WidgetControl I am trying to convert from a `ControlValueAccessor` implementation: ([stackblitz](https://stackblitz.com/edit/stackblitz-starters-tk1jhcej?file=src%2Fwidget-input.ts)):\n\n- A custom control that allows a user to type a code-number combination into a text box. The users know almost all of the ones they use and want to speed type them in.\n- I had a similar thing working using `ControlValueAccessor`: the control taps in to the model-to-view and view-to-model chains and inserts a custom Validator as the first validator in the list.\n\n### Proposed solution\n\nPossibly make `FormUiControl.errors` a model signal, allowing the control to pass validation errors back to the framework?\n\n### Alternatives considered\n\nI tried to create a sub-form, but can't see how to get that to work. Ultimately I want the field to act like a any other field in the parent form:\n```\n\u003capp-currency-input [field]=\"userForm.currency\" />\n```","author":{"url":"https://github.com/baarney","@type":"Person","name":"baarney"},"datePublished":"2025-12-02T00:54:34Z","url":"https://github.com/angular/angular/issues/65769"}

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:2f2d6d2f-811e-2087-19cb-84351bafd72e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9730:2C4BED:3F69200:507A9B1:6B02180A
html-safe-nonce9c1cd297606fb9d2aceba63f6452421bec21c9090d9fd048a1430eb081e9a620
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzMwOjJDNEJFRDozRjY5MjAwOjUwN0E5QjE6NkIwMjE4MEEiLCJ2aXNpdG9yX2lkIjoiODA0MjcxODg4MjY3MzUyMDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac367cc4772158403a4c637896803bc299584c0994a8c2fd8280ed02495e874b52
hovercard-subject-tagissue:3683482886
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/65769/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d3c09db79f4f829d0543fe1e84b21418d0069cccd1f25d952a79196a3748a96e/angular/angular/issues/65769
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d3c09db79f4f829d0543fe1e84b21418d0069cccd1f25d952a79196a3748a96e/angular/angular/issues/65769
og:image:altWhich @angular/* package(s) are relevant/related to the feature request? forms Description The signal forms doco on Value transformation contains: ...and handle input events to parse user input bac...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebaarney
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/65769#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F65769
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%2F65769
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/65769
Reloadhttps://github.com/angular/angular/issues/65769
Reloadhttps://github.com/angular/angular/issues/65769
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests142 (142)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/65769
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/65769
Signal Forms: Consider allowing validation in FormValueControlhttps://github.com/angular/angular/issues/65769#top
https://github.com/alxhub
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
forms: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22forms%3A%20signals%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/baarney
baarneyhttps://github.com/baarney
on Dec 2, 2025https://github.com/angular/angular/issues/65769#issue-3683482886
Value transformationhttps://angular.dev/guide/forms/signals/custom-controls#value-transformation
stackblitzhttps://stackblitz.com/edit/stackblitz-starters-tk1jhcej?file=src%2Fwidget-input.ts
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Dec 2, 2025https://github.com/angular/angular/issues/65769#issuecomment-3601031493
#64493https://github.com/angular/angular/issues/64493
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Dec 2, 2025https://github.com/angular/angular/issues/65769#event-21300428587
https://github.com/baarney
baarneyhttps://github.com/baarney
on Dec 2, 2025https://github.com/angular/angular/issues/65769#issuecomment-3601105430
@JeanMechehttps://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Dec 2, 2025https://github.com/angular/angular/issues/65769#event-21301722929
JeanMechehttps://github.com/JeanMeche
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
forms: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22forms%3A%20signals%22
on Dec 2, 2025https://github.com/angular/angular/issues/65769#event-21301727179
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Dec 2, 2025https://github.com/angular/angular/issues/65769#event-21301727689
github-project-automationhttps://github.com/apps/github-project-automation
Signal Formshttps://github.com/orgs/angular/projects/60
on Dec 2, 2025https://github.com/angular/angular/issues/65769#event-21301729105
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Dec 2, 2025https://github.com/angular/angular/issues/65769#event-21301727801
https://github.com/alxhub
alxhubhttps://github.com/alxhub
on Dec 2, 2025https://github.com/angular/angular/issues/65769#issuecomment-3602874725
https://github.com/baarney
baarneyhttps://github.com/baarney
on Dec 3, 2025https://github.com/angular/angular/issues/65769#issuecomment-3604658153
stackblitzhttps://stackblitz.com/edit/stackblitz-starters-mhahdh9y?file=src%2Fcurrency-form.ts
https://github.com/baarney
baarneyhttps://github.com/baarney
on Dec 3, 2025https://github.com/angular/angular/issues/65769#issuecomment-3609173183
mmalerbahttps://github.com/mmalerba
alxhubhttps://github.com/alxhub
on Dec 5, 2025https://github.com/angular/angular/issues/65769#event-21389631475
https://github.com/ptandler
ptandlerhttps://github.com/ptandler
on Dec 22, 2025https://github.com/angular/angular/issues/65769#issuecomment-3681342396
@baarneyhttps://github.com/baarney
@alxhubhttps://github.com/alxhub
@mmalerbahttps://github.com/mmalerba
#65194 (comment)https://github.com/angular/angular/issues/65194#issuecomment-3618599619
#65194 (comment)https://github.com/angular/angular/issues/65194#issuecomment-3585154425
https://stackoverflow.com/q/79851174/1480587https://stackoverflow.com/q/79851174/1480587
https://github.com/pete-mcwilliams
pete-mcwilliamshttps://github.com/pete-mcwilliams
on Dec 22, 2025https://github.com/angular/angular/issues/65769#issuecomment-3682581274
https://github.com/xumepadismal
xumepadismalhttps://github.com/xumepadismal
on Feb 8, 2026https://github.com/angular/angular/issues/65769#issuecomment-3867066808
FormUiControlhttps://angular.dev/api/forms/signals/FormUiControl
https://github.com/ptandler
ptandlerhttps://github.com/ptandler
on Feb 17, 2026https://github.com/angular/angular/issues/65769#issuecomment-3912884915
FormUiControlhttps://angular.dev/api/forms/signals/FormUiControl
https://github.com/ptandler
ptandlerhttps://github.com/ptandler
on Feb 17, 2026https://github.com/angular/angular/issues/65769#issuecomment-3912905916
@baarneyhttps://github.com/baarney
https://github.com/ptandler
ptandlerhttps://github.com/ptandler
on Feb 17, 2026https://github.com/angular/angular/issues/65769#issuecomment-3912953924
ebae211https://github.com/angular/angular/commit/ebae211add37700858adeb8fc5d87bf503a59721
https://github.com/angular/angular/releases/tag/v21.2.0-next.1https://github.com/angular/angular/releases/tag/v21.2.0-next.1
https://github.com/ptandler
ptandlerhttps://github.com/ptandler
on Feb 18, 2026https://github.com/angular/angular/issues/65769#issuecomment-3919246218
adfb831https://github.com/angular/angular/commit/adfb83146b0c149734f43961563b389e00cc1d85
https://github.com/baarney
baarneyhttps://github.com/baarney
on Feb 18, 2026https://github.com/angular/angular/issues/65769#issuecomment-3920005755
#65769 (comment)https://github.com/angular/angular/issues/65769#issuecomment-3609173183
https://github.com/baarney
baarneyhttps://github.com/baarney
on Feb 26, 2026https://github.com/angular/angular/issues/65769#issuecomment-3963603582
StackBlitzhttps://stackblitz.com/edit/stackblitz-starters-owuqs9o4?file=src%2Fcurrency-input.ts
https://github.com/montella1507
montella1507https://github.com/montella1507
on Mar 29, 2026https://github.com/angular/angular/issues/65769#issuecomment-4150024650
@baarneyhttps://github.com/baarney
https://github.com/sdilts
sdiltshttps://github.com/sdilts
on Apr 16, 2026https://github.com/angular/angular/issues/65769#issuecomment-4257128275
https://github.com/sdilts
sdiltshttps://github.com/sdilts
on Apr 16, 2026https://github.com/angular/angular/issues/65769#issuecomment-4257197675
https://github.com/neodescis
neodescishttps://github.com/neodescis
on Jul 2, 2026https://github.com/angular/angular/issues/65769#issuecomment-4867726958
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/65769
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/65769
alxhubhttps://github.com/alxhub
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
forms: signalshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22forms%3A%20signals%22
Signal Formshttps://github.com/orgs/angular/projects/60
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.