GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(forms): show nullable number and Date models in signal forms guides by MeAkib · Pull Request #72217 · angular/angular

Conversation

@MeAkib

@MeAkib MeAkib commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Clearing a number or date input sets a number or Date field to null, so type those fields as number | null and Date | null. Also explain that date inputs only use YYYY-MM-DD strings when the field is a string, and drop the new Date() conversion tip, since a Date | null field receives Date objects directly.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@MeAkib
docs(forms): show nullable number and Date models in signal forms guides
a93b2b6
Clearing a number or date input sets a number or `Date` field to `null`,
so type those fields as `number | null` and `Date | null`. Also explain
that date inputs only use `YYYY-MM-DD` strings when the field is a
string, and drop the `new Date()` conversion tip, since a `Date | null`
field receives `Date` objects directly.
@pullapprove
pullapprove Bot requested a review from josephperrott November 26, 2026 03:34
@angular-robot angular-robot Bot added area: docs Related to the documentation area: forms labels Nov 26, 2026
@ngbot ngbot Bot added this to the Backlog milestone Nov 26, 2026
JeanMeche
JeanMeche approved these changes Nov 26, 2026
View reviewed changes

@JeanMeche JeanMeche left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for highlithing this.

I've opened #72230 / #72231 to improve dx around this.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

michael-small and MeAkib reacted with heart emoji
All reactions
  • ❤️ 2 reactions
@SkyZeroZx SkyZeroZx mentioned this pull request Nov 26, 2026
fix(forms): enforce nullable types for signal form number and date inputs #72231
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JeanMeche JeanMeche JeanMeche approved these changes
@josephperrott josephperrott Awaiting requested review from josephperrott

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

area: docs Related to the documentation area: forms

Projects

None yet

Milestone

Backlog

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@MeAkib @JeanMeche
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.