René's URL Explorer Experiment


Title: Signal Forms Optional Fields - Nullability · Issue #65454 · angular/angular · GitHub

Open Graph Title: Signal Forms Optional Fields - Nullability · Issue #65454 · angular/angular

X Title: Signal Forms Optional Fields - Nullability · Issue #65454 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Signal Form Models cannot contain optional fields or fields with type null or undefined. However I'd suggest we should be able to be expres...

Open Graph Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Signal Form Models cannot contain optional fields or fields with type null or undefined. However I'...

X Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Signal Form Models cannot contain optional fields or fields with type null or undefined. However I&...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Signal Forms Optional Fields - Nullability","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nforms\n\n### Is this a regression?\n\nNo\n\n### Description\n\nSignal Form Models cannot contain optional fields or fields with type null or undefined. However I'd suggest we should be able to be express optional fields with nullable types. The current approach causes issues with number values and input type=\"number\" in particular.\n\n\n```typescript\nmodel = signal\u003c{\n    count: number | null\n}>({\n   count: null\n});\ncountForm = form(this.model);\n```\nError on [field] binding:\n\n\u003cimg width=\"948\" height=\"342\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f98f66f1-968f-4aeb-829f-496f41baa130\" />\n\nIf initialized with a number, it will be set to NaN when cleared:\n```typescript\nmodel = signal\u003c{\n     count: number\n }>({\n   count: 0\n });\ncountForm = form(this.model);\n```\n\n\u003cimg width=\"257\" height=\"87\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7962f66e-6319-4978-b397-147e948e8dd0\" />\n\nIf initialized with empty string (not a desired type union of number | string) the editing the input will now always update model with the string value of the input\n\n```typescript\nmodel = signal\u003c{\n     count: number | string\n    }>({\n    count: ''\n  });\ncountForm = form(this.model);\n```\n\n\u003cimg width=\"742\" height=\"190\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b8182873-9ba6-4a3e-ba4d-7a793d7e4887\" />\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/stackblitz-starters-gdr1gfhv?file=src%2Fmain.ts\n\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nStackblitz: https://stackblitz.com/edit/stackblitz-starters-gdr1gfhv?file=src%2Fmain.ts\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package                   │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/animations       │ 21.0.0            │ ^21.0.0           │\n│ @angular/build            │ 21.0.0            │ ^21.0.0           │\n│ @angular/cli              │ 21.0.0            │ ^21.0.0           │\n│ @angular/common           │ 21.0.0            │ ^21.0.0           │\n│ @angular/compiler         │ 21.0.0            │ ^21.0.0           │\n│ @angular/compiler-cli     │ 21.0.0            │ ^21.0.0           │\n│ @angular/core             │ 21.0.0            │ ^21.0.0           │\n│ @angular/forms            │ 21.0.0            │ ^21.0.0           │\n│ @angular/platform-browser │ 21.0.0            │ ^21.0.0           │\n│ @angular/router           │ 21.0.0            │ ^21.0.0           │\n│ rxjs                      │ 7.8.2             │ ^7.8.1            │\n│ typescript                │ 5.9.3             │ ^5.9.3            │\n│ zone.js                   │ 0.15.0            │ ~0.15.0           │\n```\n\n### Anything else?\n\nIn the stackblitz repro I also provided ngModel and FormControl comparisons. Both write back null when clearing the respective input.","author":{"url":"https://github.com/raven-dever","@type":"Person","name":"raven-dever"},"datePublished":"2025-11-21T02:20:23Z","url":"https://github.com/angular/angular/issues/65454"}

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:1420c7e7-acf3-fcf4-f8f6-07373b4751bb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB450:39FDE1:B0373C:DCFBB4:6B02220D
html-safe-noncea29d6c9ff5ddfeb0b0525df5fd9c6d6c30b4e9825a28b868eb633ba63e8bf569
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDUwOjM5RkRFMTpCMDM3M0M6RENGQkI0OjZCMDIyMjBEIiwidmlzaXRvcl9pZCI6IjQ0NTA1NTE0NDAxMjA4ODE2NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb2300377ee9ee946d15d1f42ba48021f59ea91e23ef77669b774fb254be727e4
hovercard-subject-tagissue:3649932394
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/65454/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7cf1a66ac1abdfa71420cc249556809aaeafc26ec70a422e44c1b5f1ca09bce4/angular/angular/issues/65454
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7cf1a66ac1abdfa71420cc249556809aaeafc26ec70a422e44c1b5f1ca09bce4/angular/angular/issues/65454
og:image:altWhich @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Signal Form Models cannot contain optional fields or fields with type null or undefined. However I'...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameraven-dever
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/65454#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F65454
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%2F65454
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/65454
Reloadhttps://github.com/angular/angular/issues/65454
Reloadhttps://github.com/angular/angular/issues/65454
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/65454
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/65454
Signal Forms Optional Fields - Nullabilityhttps://github.com/angular/angular/issues/65454#top
https://github.com/mmalerba
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/raven-dever
raven-deverhttps://github.com/raven-dever
on Nov 21, 2025https://github.com/angular/angular/issues/65454#issue-3649932394
https://private-user-images.githubusercontent.com/93713466/517160753-f98f66f1-968f-4aeb-829f-496f41baa130.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzMDIyMDEsIm5iZiI6MTc5NTMwMTkwMSwicGF0aCI6Ii85MzcxMzQ2Ni81MTcxNjA3NTMtZjk4ZjY2ZjEtOTY4Zi00YWViLTgyOWYtNDk2ZjQxYmFhMTMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDIyNTgyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0NTA4NWUyNTVmNWY2ZmFlNmNiNTYyMWExZTMxZWFmYWQ0NmZmNDg3YWI1ODAxYjA5ZDZkNDk5OWI0MmRkZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.2F1aHqojSJtfiGow5gmAM9vxSqkMhhH8ajF9_8qxZmc
https://private-user-images.githubusercontent.com/93713466/517163250-7962f66e-6319-4978-b397-147e948e8dd0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzMDIyMDEsIm5iZiI6MTc5NTMwMTkwMSwicGF0aCI6Ii85MzcxMzQ2Ni81MTcxNjMyNTAtNzk2MmY2NmUtNjMxOS00OTc4LWIzOTctMTQ3ZTk0OGU4ZGQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDIyNTgyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYzY2UyNWZhZThiMzZhNDNkYjhiZTY3Y2FjYjAwNzU4OTNlMzJlZmYwN2E1MTE4OTI1ZGM1YjdjMzQzNjZlYzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.xEVuOHJ1H5DF71F7jpMk7Fvm69z9Ib8lmm6JCShnw-o
https://private-user-images.githubusercontent.com/93713466/517170076-b8182873-9ba6-4a3e-ba4d-7a793d7e4887.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzMDIyMDEsIm5iZiI6MTc5NTMwMTkwMSwicGF0aCI6Ii85MzcxMzQ2Ni81MTcxNzAwNzYtYjgxODI4NzMtOWJhNi00YTNlLWJhNGQtN2E3OTNkN2U0ODg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDIyNTgyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZjOWFkZTNjY2E4MzA4NTY5NGMxMTFkNDJjNGY4ZWZiYTg4NTViNzUxOTJjMWE4NjJjMjkxYzczZjE1YjJmYzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.VnxUlv0Ta-C7xXjwVp7EvwLVnJSny1S4k_th5pr0ADg
https://stackblitz.com/edit/stackblitz-starters-gdr1gfhv?file=src%2Fmain.tshttps://stackblitz.com/edit/stackblitz-starters-gdr1gfhv?file=src%2Fmain.ts
https://github.com/raven-dever
raven-deverhttps://github.com/raven-dever
on Nov 21, 2025https://github.com/angular/angular/issues/65454#issuecomment-3562124503
thePunderWomanhttps://github.com/thePunderWoman
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 Nov 21, 2025https://github.com/angular/angular/issues/65454#event-21100601017
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 21, 2025https://github.com/angular/angular/issues/65454#event-21100601471
github-project-automationhttps://github.com/apps/github-project-automation
Signal Formshttps://github.com/orgs/angular/projects/60
on Nov 21, 2025https://github.com/angular/angular/issues/65454#event-21100603406
https://github.com/MasDevProject
MasDevProjecthttps://github.com/MasDevProject
on Nov 25, 2025https://github.com/angular/angular/issues/65454#issuecomment-3575296408
kirjshttps://github.com/kirjs
mmalerbahttps://github.com/mmalerba
on Dec 3, 2025https://github.com/angular/angular/issues/65454#event-21343560642
https://github.com/mmalerba
mmalerbahttps://github.com/mmalerba
on Dec 8, 2025https://github.com/angular/angular/issues/65454#issuecomment-3628958754
#65631https://github.com/angular/angular/pull/65631
https://github.com/meretodev
meretodevhttps://github.com/meretodev
on Jan 5, 2026https://github.com/angular/angular/issues/65454#issuecomment-3711568181
https://github.com/tomastrajan
tomastrajanhttps://github.com/tomastrajan
on Jan 9, 2026https://github.com/angular/angular/issues/65454#issuecomment-3727891589
https://github.com/Buslowicz
Buslowiczhttps://github.com/Buslowicz
on Jan 10, 2026https://github.com/angular/angular/issues/65454#issuecomment-3731955703
https://github.com/Konctantin
Konctantinhttps://github.com/Konctantin
on Jan 15, 2026https://github.com/angular/angular/issues/65454#issuecomment-3755238645
https://github.com/meretodev
meretodevhttps://github.com/meretodev
on Jan 22, 2026https://github.com/angular/angular/issues/65454#issuecomment-3787257906
https://github.com/Nvveen
Nvveenhttps://github.com/Nvveen
on Jan 30, 2026https://github.com/angular/angular/issues/65454#issuecomment-3824340768
https://github.com/ptandler
ptandlerhttps://github.com/ptandler
on Feb 2, 2026https://github.com/angular/angular/issues/65454#issuecomment-3833942334
mmalerbahttps://github.com/mmalerba
Signal Formshttps://github.com/orgs/angular/projects/60
on Feb 10, 2026https://github.com/angular/angular/issues/65454
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Feb 10, 2026https://github.com/angular/angular/issues/65454#issuecomment-3877407755
#66917https://github.com/angular/angular/pull/66917
https://github.com/domvanrob
domvanrobhttps://github.com/domvanrob
on Feb 11, 2026https://github.com/angular/angular/issues/65454#issuecomment-3884678783
mmalerbahttps://github.com/mmalerba
Signal Formshttps://github.com/orgs/angular/projects/60
on Feb 18, 2026https://github.com/angular/angular/issues/65454
mmalerbahttps://github.com/mmalerba
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
Signal Formshttps://github.com/orgs/angular/projects/60
on Feb 18, 2026https://github.com/angular/angular/issues/65454#event-22869206649
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 21, 2026https://github.com/angular/angular/issues/65454#issuecomment-4101568380
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 Mar 21, 2026https://github.com/angular/angular/issues/65454#event-23768790858
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/65454
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/65454
mmalerbahttps://github.com/mmalerba
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.