Commit Graph

2228 Commits

Author SHA1 Message Date
Angular Robot 2d2d5fc362 build: lock file maintenance
See associated pull request for more information.

Closes #69367 as a pr takeover
2026-06-17 09:12:30 -07:00
rudzikdawid 02d6b436f1 fix(docs-infra): increase SSR fetch limit to prevent 404 on page reload
Navigating to specific ARIA guide pages directly or via hard refresh
causes a 404 error because the payload exceeds the default SSR fetch
limit. This commit increases the maxResponseBodySize to 2MB.
2026-06-17 08:03:54 -07:00
SkyZeroZx 0152e3cbdf fix(core): treat iframe credentialless as security-sensitive
Mark the iframe `credentialless` attribute as security-sensitive so dynamic
bindings are handled consistently with other iframe attributes that affect the
initial navigation, such as `sandbox`, `allow`, `referrerPolicy`, `csp`, and
`fetchPriority`.

Because `credentialless` must be present before the iframe starts loading to
affect the navigation’s credential mode, late dynamic updates can leave the final
DOM looking correct while the initial request was not loaded credentiallessly.
2026-06-16 09:05:53 -07:00
yamanerkam cbccd368af docs: use the @Service decorator in the learn-angular DI tutorial
The "Creating an injectable service" tutorial introduced services with
`@Injectable({providedIn: 'root'})`, even though the essentials guide and
the in-depth dependency injection guides have already moved to the newer
`@Service` decorator. This left the tutorial out of step with the rest of
the documentation.

Update steps 19 and 20 to use `@Service()`. Because `@Service()` is an
ergonomic shorthand for `@Injectable({providedIn: 'root'})`, the examples
behave identically while teaching the recommended modern API. The step 19
README is reworked to match: it drops the now-unnecessary `providedIn`
configuration step and adds a note linking to the in-depth services guide
for the `autoProvided: false` opt-out.
2026-06-16 08:49:04 -07:00
Angular Robot 01e99d8a32 docs: update cross-repo adev docs
Updated Angular adev cross repo docs files.
2026-06-15 11:18:08 -07:00
Kam 4ba8ba4ef2 fix(docs-infra): align homepage banner and search field
The homepage hero lays out the announcement banner and the search field on
the same flex row. The `.search-field` wrapper was a plain block, so its
`docs-text-field` kept its intrinsic height instead of filling the row,
leaving the two pills at different heights and vertically misaligned.

Make `.search-field` a flex container so the search control stretches to the
row height and matches the banner.
2026-06-15 09:15:29 -07:00
Kam 50e7f3a1cd fix(docs-infra): center social and theme menus under their triggers on tablet
On tablet the social and theme mini-menus didn't line up with the buttons that
open them.

All three mini-menus now share one tablet positioning rule on `.adev-mini-menu`
that centers each panel under its trigger, with `--social`/`--theme`/`--version`
modifiers selecting the anchor; the version picker's on-screen behavior is
unchanged. The social trigger also gains `aria-controls` + a matching menu `id`
for a11y parity with the theme trigger.
2026-06-15 08:59:18 -07:00
Matthieu Riegler 3b8bb7219b docs: add item about the resource breaking change.
In #67382 we changed how values are resolved which ended up being a breaking change for some unit tests.

fixes #69360
2026-06-15 08:57:02 -07:00
kirjs c0e2364f12 docs(forms): use touch.emit() in custom controls example 2026-06-15 08:56:11 -07:00
Jessica Janiuk dcc4fe06b9 build: update cross-repo angular dependencies
See associated pull request for more information.
2026-06-11 13:04:18 -07:00
Matthieu Riegler 59e2041847 docs(docs-infra): Update navigation status 2026-06-11 09:24:28 -07:00
SkyZeroZx 274d1d2dcc docs: add caching guidance for resource data with SSR 2026-06-10 11:27:42 -07:00
aparziale 8854f2d476 docs: update webpack-based system docs
Update webpack-based system docs

Fixes #69279
2026-06-10 10:54:41 -07:00
SkyZeroZx 2066225244 docs: deprecate XHR support for server-side rendering in HTTP docs and recommend Fetch 2026-06-10 10:20:39 -07:00
Jad Chahed 248e9c146d docs: add Signal Forms and v22 guidance to AI best-practices and llms.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.
2026-06-09 13:59:56 -07:00
Kam 7d92cc8b46 fix(docs-infra): improve version picker dropdown positioning
Drops `position: absolute` from the version picker `<ul>` and tightens `max-height` to `70dvh` so the cdk-overlay-pane fits the viewport and the inner scroll reaches the last versions on mobile and desktop.
2026-06-09 09:58:21 -07:00
Kam a82f822057 docs: fix CurrencyPipe locale override example
The "Override current locale for CurrencyPipe" example used `{{ amount | currency: 'en-US' }}`, but the first `CurrencyPipe` argument is the currency code, not the locale, so `'en-US'` was treated as an invalid currency code (rendered literally as the symbol) and the locale was never overridden. Since `locale` is the fourth positional argument, the example now passes a valid currency code, display, and digits before it (`'USD' : 'symbol' : '1.2-2' : 'en-US'`), matching the parameter order shown on the CurrencyPipe API page.
2026-06-08 14:36:17 -07:00
Bhuvansh855 422e6893e4 docs: fix malformed prettier-ignore comment in whitespace guide 2026-06-08 12:59:24 -07:00
aparziale dc8165e253 docs: close menù with click outside container
close menù with click outside container

Fixes #69222
2026-06-08 12:57:59 -07:00
Matthieu Riegler 9cfd3f52e1 docs: mention required behavior for booleans
fixes #68509
2026-06-08 12:54:40 -07:00
Kam af7cb63151 docs: trim transparent padding from v22 event hero image
The v22 event hero PNG shipped with a wide transparent margin baked into
its 960x540 canvas. Under the shared `img { width: 100% }` rule that empty
border stretched along with the artwork, leaving visible space around the
image. Trims the canvas to the artwork bounds (831x473) so it renders
flush; the retained pixels are unchanged and the file shrinks from about
795 KB to 568 KB.
2026-06-05 10:56:26 -07:00
marktechson 0197be381e docs: update landing page with embed link and updated messaging 2026-06-05 10:41:30 -07:00
Kam 3960ad64e5 docs: bump schematics-for-libraries example peer deps to v22
The my-lib schematics-for-libraries example still declared `^21.0.0`
peerDependencies, the only adev example left on the previous major. Bumps
`@angular/common`/`@angular/core` to `^22.0.0`, matching the current major
and this file's stable-`^N.0.0` bump pattern.

Also adds this example's package.json to .prettierignore: it contains
`// #docregion` markers consumed by the schematics-for-libraries guide, and
Prettier's json-stringify parser (used for any package.json) rejects those as
invalid JSON. Editing the file surfaced this pre-existing incompatibility in
the format check.
2026-06-05 10:18:37 -07:00
Michael Small e100c75e37 docs: mention parse of validateHttp 2026-06-04 12:32:10 -07:00
Sreeved 82193a19ee docs: fix typo in update card link description 2026-06-04 12:29:03 -07:00
Matthieu Riegler ebb76a4313 docs: update support & release dates 2026-06-04 11:36:27 -07:00
Ben Hong c39b2a3b18 docs: fix directives guide issues and inaccuracies 2026-06-03 15:39:13 -07:00
SkyZeroZx 1ad6824d0d fix(common): skip transfer cache for uncacheable HTTP traffic (#69017)
Do not store HTTP transfer cache entries when either the request or response
uses `Cache-Control: no-store`, `Cache-Control: private`, or
`Cache-Control: no-cache`.

Also skip transfer cache when requests use the Fetch API `cache` option with
`no-store` or `no-cache`.

Because transfer cache serializes SSR HTTP responses into the rendered HTML,
Angular now treats these directives conservatively to avoid exposing sensitive
or explicitly uncacheable data through `TransferState`.

PR Close #69017
2026-06-03 18:47:44 +00:00
SkyZeroZx c0cbd46bd7 fix(http): skip transfer cache for fetch credentialed requests (#69017)
Treat HttpClient requests using `credentials: 'include'` and `same-origin` as credentialed
when deciding whether a response can be stored in the HTTP transfer cache.

The transfer cache already skips requests with `withCredentials`, `Cookie`,
`Authorization`, or `Proxy-Authorization` because those responses may contain
user-specific data. Fetch-backed requests can express the same credentialed
behavior through the `credentials` option, so these responses must not be
serialized into the SSR HTML.

This keeps credentialed SSR responses out of TransferState and aligns the
cache eligibility check with the fetch request options supported by HttpClient.

PR Close #69017
2026-06-03 18:47:44 +00:00
marktechson 20524958b7 docs: update landing page for v22 2026-06-03 17:54:49 +02:00
Pawel Kozlowski 95ede172a6 docs: update version picker list for v22 release 2026-06-03 17:11:37 +02:00
Cheng-Hsuan Tsai b84e5ef183 docs: add Signal Forms integration example to Angular Aria Autocomplete guide 2026-06-03 11:23:22 +02:00
Kam 192ac021e4 docs: use Türkiye as the country name in aria autocomplete examples
The aria autocomplete examples list "Turkey" in their country data, but
the country's official name is "Türkiye". Update all nine app.ts variants
to use it.

While there, remove a junk "Imporant" entry from the highlight/retro
variant's list, which is not a country and was a misspelled stray paste.
2026-06-03 11:19:53 +02:00
cexbrayat 3bb602ffe6 docs: simplify testing setup examples 2026-06-03 11:17:43 +02:00
Cheng-Hsuan Tsai af62d88bbd docs: update Aria Menu focus/hover style and add context menu example 2026-06-03 11:16:13 +02:00
Cheng-Hsuan Tsai a76bc3c849 docs: add testing guides to Angular Aria 2026-06-02 11:25:00 +02:00
Michael Small 42391329c2 docs: fix min/max form template examples 2026-06-02 11:23:01 +02:00
Ben Hong c0eef66bbe docs: add conditional validation to signal forms validation guide 2026-06-02 11:20:52 +02:00
Bhuvansh855 ac47524ede docs(core): fix typos and grammar in dependency injection guides 2026-06-01 18:56:09 +02:00
Kam 032fae8b36 refactor(docs-infra): correct misspelled CodeHighlighter class name
The class exported from `code-highlighter.ts` was named `CodeHighligher` (missing the second `h`) and its private field was `cachedHighligher`, both disagreeing with the filename which spells "highlighter" correctly. Rename the class to `CodeHighlighter` and the field to `cachedHighlighter`, and update the sole consumer (`CodeBlock`). Pure rename, no behavior change.
2026-06-01 18:34:47 +02:00
KirtiRamchandani 9b5952e3a3 docs: mention Angular Aria in accessibility guide 2026-06-01 18:33:28 +02:00
Matthieu Riegler c743af4919 docs: add v22 entries to the update guide 2026-06-01 18:20:00 +02:00
Kam f777dd112e docs: fix esbuild and TensorFlow branding on overview page
The esbuild card on the "What is Angular?" page rendered the bundler name three different ways (title "esbuild", link "ESBuild and Vite", body "Vite and ESBuild") so this unifies on the official lowercase "esbuild"; also corrects "Tensorflow" to "TensorFlow" to match the other brands on its line (Firebase, Material Design, Flutter, Google Cloud) which were already cased correctly.
2026-06-01 12:19:01 +02:00
arturovt 2b44a07ea7 docs: document //i18n(ph="name") placeholder syntax for template interpolations
The `//i18n(ph="name")` comment syntax for naming interpolation placeholders
in templates was not documented anywhere in the i18n guide, despite being a
supported compiler feature with test coverage.

Add a "Name the interpolation placeholder" subsection under "Mark text in
component template" in prepare.md, mirroring the existing subsection in
"Mark text in component code". Includes a cross-reference to the $localize
equivalent (`${var}:name:`) to help readers connect the two approaches.

Closes #52070
2026-06-01 12:18:03 +02:00
aparziale cbc36f59e0 docs: fix link debbuging and extended-diagnostics
Update link for 'Improve debbuging with better Angular error messages' and 'extended-diagnostics' sections

Fixed #69010
2026-06-01 12:16:57 +02:00
Kam 0010ad5910 fix(docs-infra): readable contrast for DEV/EXP api badges in light mode
The DEV (developer preview) and EXP (experimental) badges in the API reference list used `--page-background` for text, which is dark in dark mode (working as intended on the pale colored bg) but white in light mode, making the labels invisible against the near-white badge bg. Introduce an `--item-attr-text` CSS variable defaulting to `--page-background` and overridden to `--primary-contrast` in light mode, following the per-mode pattern the file already uses for `--item-attr-base-mix`.
2026-06-01 11:57:47 +02:00
Angular Robot 89c28d3704 docs: update cross-repo adev docs
Updated Angular adev cross repo docs files.
2026-05-29 12:21:16 +02:00
arturovt 2f49d5dba4 docs: document i18n object forms for sourceLocale and locales in angular.json
The `sourceLocale` and `locales` entries in `angular.json` accept object
forms (with `code`, `baseHref`, and `subPath`) that were never documented.

- Add an `i18n options` reference section to workspace-config.md covering
  the full shape of `sourceLocale` and each `locales` entry, including the
  distinction between `baseHref` (HTML only) and `subPath` (HTML + output
  directory name)
- Add `i18n` to the project configuration options table in workspace-config.md
- Expand the suboptions table in merge.md to mention the object forms and
  link to the new reference section

Closes #59664
2026-05-29 11:53:48 +02:00
tjshiu f0e164e4cb docs: remove redundant keydown bindings in autocomplete examples 2026-05-29 11:46:35 +02:00
tjshiu 3939799e18 docs: add clear buttons inside autocomplete examples 2026-05-29 11:46:35 +02:00