Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(@angular/cli): add initial set of signal form examples #31134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
clydin wants to merge 5 commits into angular:main
base: main
Choose a base branch
Loading
from clydin:mcp/signal-form-examples

Conversation

@clydin
Copy link
Member

@clydin clydin commented Sep 8, 2025
edited
Loading

This commit introduces a comprehensive set of 18 examples for the new signal-based forms functionality in Angular. These examples are designed to be used with the find_examples tool (MCP) to provide developers with actionable, real-world code snippets covering a wide range of use cases.

The find_examples tool is currently experimental and must be enabled using the -E find_examples option when running the ng mcp command.

The examples cover the following key concepts:

  • Core concepts and basic setup
  • Built-in and cross-field validation
  • Dynamic and conditional form structures
  • Custom form controls and reusable validators
  • Asynchronous operations and third-party integrations (Zod)
  • Best practices for testing, accessibility, and styling

Cjameek, IgorSedov, samvloeberghs, par14, johanndev, LeonardoDSSilva, MeAkib, and attilacsanyi reacted with thumbs up emoji samvloeberghs, bboehm86, anthonyjuarezsolis, and draylegend reacted with heart emoji michael-small, samvloeberghs, Yberion, and SkyZeroZx reacted with eyes emoji
@clydin clydin force-pushed the mcp/signal-form-examples branch 2 times, most recently from 93f4632 to 0c84e42 Compare September 8, 2025 13:55
@clydin clydin added the target: major This PR is targeted for the next major release label Sep 8, 2025
@clydin clydin force-pushed the mcp/signal-form-examples branch 3 times, most recently from dd1d83d to 3653ee5 Compare September 8, 2025 23:10
@clydin clydin force-pushed the mcp/signal-form-examples branch from 3653ee5 to 190a3a0 Compare September 11, 2025 14:18
type="text"
[control]="registrationForm.name"
[class.invalid]="registrationForm.name().invalid() && registrationForm.name().touched()"
[attr.aria-invalid]="registrationForm.name().invalid()"
Copy link
Member

@JeanMeche JeanMeche Sep 14, 2025

Choose a reason for hiding this comment

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

This one will be supported once angular/angular#63748 gets in and is released

samvloeberghs reacted with thumbs up emoji samvloeberghs reacted with eyes emoji
Copy link

@samvloeberghs samvloeberghs Sep 15, 2025

Choose a reason for hiding this comment

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

[attr.aria-invalid] is working right?
[aria-invalid] was not.

@clydin clydin force-pushed the mcp/signal-form-examples branch from 190a3a0 to e38896f Compare October 18, 2025 00:18
This commit introduces a comprehensive set of 18 examples for the new signal-based forms functionality in Angular. These examples are designed to be used with the `find_examples` tool (MCP) to provide developers with actionable, real-world code snippets covering a wide range of use cases.
The `find_examples` tool is currently experimental and must be enabled using the `-E find_examples` option when running the `ng mcp` command.
The examples cover the following key concepts:
- Core concepts and basic setup
- Built-in and cross-field validation
- Dynamic and conditional form structures
- Custom form controls and reusable validators
- Asynchronous operations and third-party integrations (Zod)
- Best practices for testing, accessibility, and styling
@clydin clydin force-pushed the mcp/signal-form-examples branch from e38896f to 40f080a Compare November 12, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JeanMeche JeanMeche JeanMeche left review comments

@mmalerba mmalerba Awaiting requested review from mmalerba

+2 more reviewers

@samvloeberghs samvloeberghs samvloeberghs left review comments

@attilacsanyi attilacsanyi attilacsanyi left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

area: @angular/cli detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /