docs: add Signal Forms and v22 guidance to AI best-practices and llms…#69223
Open
Jad31 wants to merge 1 commit into
Open
docs: add Signal Forms and v22 guidance to AI best-practices and llms…#69223Jad31 wants to merge 1 commit into
Jad31 wants to merge 1 commit into
Conversation
….txt Update the AI codegen resources for Angular v22: - best-practices.md: OnPush is the default in v22+ (don't set it explicitly), recommend Signal Forms, and recommend the @service decorator. - llms.txt: add a Signal Forms reference, the httpResource guide, and an Accessibility section linking the Angular Aria overview.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Update the AI codegen resources for Angular v22:
OnPushis the default in v22+ (don't set it explicitly), recommend Signal Forms, and recommend the@Servicedecorator.httpResourceguide, and an Accessibility section linking the Angular Aria overview.PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The "Build with AI" resources (
best-practices.mdandllms.txt) predate Angular v22. They don't mention thatOnPushis now the default change detection strategy, don't reference Signal Forms or the@Servicedecorator, andllms.txthas no links to Signal Forms,httpResource, or Angular Aria.Issue Number: N/A
What is the new behavior?
The resources are updated for Angular v22:
best-practices.mdnotesOnPushis the v22+ default (don't set it explicitly), recommends Signal Forms for new forms, and recommends the@Servicedecorator over@Injectable({providedIn: 'root'}).llms.txtadds a Signal Forms reference under Forms, thehttpResourceguide under Loading Data, and a new Accessibility section linking the Angular Aria overview.Does this PR introduce a breaking change?
Other information
All added links were verified against
adev/src/app/routing/navigation-entries/index.ts.I focused on the most obvious v22 additions (Signal Forms, the
OnPushdefault, the@Servicedecorator,httpResource, and Angular Aria) and intentionally kept both files minimal —best-practices.mdas a short rules file andllms.txtas references only. If the team thinks other v22 features belong here (e.g. additional template enhancements, router updates, or AI tooling references), I'm happy to add them.