48 Commits
Author SHA1 Message Date
Jeevan Mahesha 09264663af docs: add guidance against expensive work in templates
AI coding agents using the angular-developer skill were observed calling
plain methods inside @for/@if template expressions, for example
items(count) returning a new array on every check. The skill had no
guidance on this.

Add a short rule to SKILL.md and a section to components.md that
recommends computed(), a pure pipe or a child component for expensive
work that would otherwise re-run on every change detection cycle. Signal
reads and cheap calls stay allowed.

Related to #70132
2026-11-16 12:57:07 -08:00
diegoinost02 11df1edfca docs: add error boundary reference to developer skill
The @boundary/@error template block lets a component catch rendering
and change detection errors in a subtree and show a fallback instead
of leaving the page blank, with a built-in $reset function to retry.
This was not documented anywhere in the angular-developer skill.
2026-11-10 16:03:59 -08:00
brysonbw 63e21a76de feat(router): support direct component param
Allows skipping undefined extras arg.
2026-10-28 16:43:37 -07:00
brysonbw c7404dbf5a feat(router): update RouterTestingHarness documentation
Updating RouterTestingHarness documentation to include `navigate` method
2026-10-28 16:43:37 -07:00
diegoinost02 254ab3a05e docs: document arrow function template expressions in developer skill 2026-10-19 18:24:25 -07:00
diegoinost02 5a3860f8dd docs: document @switch multiple case matching in developer skill 2026-10-19 18:23:55 -07:00
TTNAN fdebbbaa5a docs: mention linkedSignal set customization in its Skill (fixes #71197) 2026-10-14 09:34:27 -07:00
SkyZeroZx 2136a25961 docs: clarify fixture.changeDetectorRef behavior with OnPush components
Add a callout explaining that `fixture.changeDetectorRef` belongs to the host view, so its `markForCheck()` does not refresh the template of `OnPush` components. Also update the developer skill and AGENTS.md to prefer signals in tests.

Fixes #71293
2026-10-14 12:35:14 +02:00
SkyZeroZx 6c6e2108aa docs: Add skills for deferrable views and server-side rendering 2026-10-13 15:15:45 -07:00
aminesbdev 4a890a8054 docs: add queries and content projection reference to developer skill
Add a reference for signal-based queries and content projection to the
angular-developer skill, and mention the topic in the skill description
so agents load it for these tasks.

The reference covers viewChild/viewChildren and contentChild/
contentChildren (including `.required`, `read` and the `descendants`
defaults), when query results update, single and multi-slot projection,
`<ng-content>` fallback content, and rendering content lazily with an
`<ng-template>` and `NgTemplateOutlet`. The best practices call out
mistakes agents often make, such as passing `{static: true}` to signal
queries or using a view query for projected children.
2026-10-12 15:13:14 -07:00
jhjh1214 3f6dae2f72 docs: document that resource value() throws in the error state in the developer skill 2026-10-09 17:09:36 -07:00
jhjh1214 54c17771ec docs: use underscore names for MCP devserver tools
Angular CLI 22.1.0 renamed the MCP devserver tools from
`devserver.start`, `devserver.stop` and `devserver.wait_for_build` to
`devserver_start`, `devserver_stop` and `devserver_wait_for_build` so
that they match the MCP tool name pattern. The AI guide and the
angular-developer skill still listed the dotted names, which no longer
exist in the tool list the server returns.
2026-10-09 17:06:55 -07:00
jhjh1214 44c29d16ce docs: correct how multiple route guards are executed
The route guards guide and the agent skill say guards in an array "are
executed in the order they appear". The router starts every guard in the
array and combines their results by array priority, so asynchronous guards
run concurrently and a later guard can finish, with its side effects,
before an earlier one resolves. Document the actual behavior and warn
against guards that depend on an earlier guard in the same array.
2026-10-09 17:06:29 -07:00
jhjh1214 73034c777c docs: fix route data and ng update examples
The resolver examples read `toSignal(this.route.data)` and then access
`this.data().user`. Without options `toSignal` returns
`Signal<Data | undefined>`, so the snippet fails to compile under strict
null checks. `ActivatedRoute.data` is backed by a `BehaviorSubject` and
always emits synchronously, so pass `requireSync: true` to get a
`Signal<Data>`.

Also add the missing `@` before the version in the `@angular/cli`
argument of the `ng update` example in the CLI skill reference.
2026-10-09 17:06:01 -07:00
Michael Small 5812f2905e docs: mention getError() in signal forms skill 2026-10-05 11:36:18 -04:00
Kam cbb16ed4e5 docs: match the standalone migration prompt labels to the schematic
The guide tells the reader to select "Bootstrap the project using
standalone APIs". The schematic offers "Bootstrap the application using
standalone APIs", so the option cannot be found by the name the guide
gives. The other two steps already quote their labels verbatim.

The Angular developer skill repeats the same three steps and carries the
same wrong label, plus an extra comma in the first one.
2026-10-01 13:29:57 -04:00
jhjh1214 306b99ceff docs: correct signal forms skill guidance on when and select multiple
The signal forms reference of the angular-developer skill contradicted the
implementation in several places, so an agent following it produced code that
does not compile or avoided valid APIs:

- It said `when` only works with `required()`. Every built-in validator accepts
  `when` since v22, and the skill even listed a compiler error for it that
  no longer exists. Document `when` on the other validators and drop the
  wrong pitfall row and recovery section.
- It recommended `<select multiple [formField]>` for `string[]` fields,
  including in the Big Form Example, which fails with TS2322 under
  strictTemplates. `[formField]` does not support `<select multiple>`, as
  the signal forms guide already states. Model multiple choices as one
  boolean field per option bound to a checkbox instead.
- The Conditional Validation snippets used names that do not exist
  (`disable`, `require`), undefined variables and a test-only injector.
  Rewrite them so they compile.
2026-09-29 12:12:16 -07:00
Cheng-Hsuan Tsai d7af4b5aca docs: decouple selection from aria toolbar examples and guide 2026-09-02 15:14:21 -07:00
aminesbdev d953d2eda9 docs: add missing tap import and AppConfig interface to environment configuration reference 2026-08-24 10:37:13 -07:00
aminesbdev 15cf923f88 docs: modernize creating-services reference with signal state and asReadonly 2026-08-24 10:22:10 -07:00
aminesbdev 719e1ada74 docs: add self-closing tags guideline to components reference 2026-08-24 10:05:35 -07:00
aminesbdev 560d3f0412 docs: update naming-conventions skill 2026-08-18 08:58:44 -07:00
SkyZeroZx 3e7094b049 docs: correct Angular developer skill guidance 2026-08-17 13:44:50 -07:00
SkyZeroZx ea3097c774 docs: add example for conditional redirects in routing 2026-08-17 13:26:49 -07:00
hello 789c9c242d docs: update Angular MCP skill reference 2026-08-17 10:43:11 -07:00
Jaime Burgos 840f071566 docs: Adds HTTP communication guidance to Angular Skills 2026-07-29 08:37:14 -07:00
SkyZeroZx 6371f0beb1 docs: add skills for Angular pipes 2026-07-22 11:52:33 +02:00
ZorphDark 3cd98ffc1f docs: update e2e-testing guide and skill for official integrations 2026-07-08 11:20:01 -07:00
Shuaib Hasan Akib cf70bcfef8 docs: update component and directive decorator examples to use concise syntax 2026-07-07 09:14:13 -07:00
Michael Small 42affba3b7 docs: remove standalone: true and explicit OnPush from forms skill
docs: remove `standalone: true` from `signal-forms.md`

docs: remove explicit `OnPush` from signal forms skill

docs: remove import of CD strategy
2026-06-30 17:48:51 -07:00