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

Appearance settings

Conversation

@clydin
Copy link
Member

@clydin clydin commented Sep 8, 2025

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

@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/cli labels Sep 8, 2025
@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 requested a review from mmalerba September 9, 2025 12: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

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

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

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

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.