Skip to content

Commit b5e843c

Browse files
committed
chore: update English source files from origin
Updated English source files (.en.md, .en.html) from origin commit 29223c440fcd313066e62332e855ee7ec1189713
1 parent 9e120d5 commit b5e843c

File tree

51 files changed

+213
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+213
-103
lines changed

adev-ja/shared-docs/components/table-of-contents/table-of-contents.component.en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2 class="docs-title">On this page</h2>
99
<li class="docs-faceted-list-item" [class.docs-toc-item-h2]="item.level === TableOfContentsLevel.H2"
1010
[class.docs-toc-item-h3]="item.level === TableOfContentsLevel.H3">
1111
<!-- Not using routerLink + fragment because of: https://github.com/angular/angular/issues/30139 -->
12-
<a [href]="location.path() + '#' + item.id" [class.docs-faceted-list-item-active]="item.id === activeItemId()">
12+
<a [href]="location.path() + '#' + item.id" [class.docs-faceted-list-item-active]="item.id === activeItemId()" [title]="item.title">
1313
{{ item.title }}
1414
</a>
1515
</li>

adev-ja/src/content/best-practices/runtime-performance/skipping-subtrees.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ You can set the change detection strategy of a component to `OnPush` in the `@Co
1717

1818
```ts
1919
import { ChangeDetectionStrategy, Component } from '@angular/core';
20+
2021
@Component({
2122
changeDetection: ChangeDetectionStrategy.OnPush,
2223
})

adev-ja/src/content/best-practices/style-guide.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ When in doubt, go with the approach that leads to smaller files.
110110

111111
### Prefer the `inject` function over constructor parameter injection
112112

113-
Prefer using the `inject` function over injecting constructor parameters. The `inject` function works the same way as constructor parameter injection, but offers several style advantages:
113+
Prefer using the [`inject`](/api/core/inject) function over injecting constructor parameters. The [`inject`](/api/core/inject) function works the same way as constructor parameter injection, but offers several style advantages:
114114

115-
- `inject` is generally more readable, especially when a class injects many dependencies.
115+
- [`inject`](/api/core/inject) is generally more readable, especially when a class injects many dependencies.
116116
- It's more syntactically straightforward to add comments to injected dependencies
117-
- `inject` offers better type inference.
117+
- [`inject`](/api/core/inject) offers better type inference.
118118
- When targeting ES2022+ with [`useDefineForClassFields`](https://www.typescriptlang.org/tsconfig/#useDefineForClassFields), you can avoid separating field declaration and initialization when fields read on injected dependencies.
119119

120120
[You can refactor existing code to `inject` with an automatic tool](reference/migrations/inject-function).

adev-ja/src/content/guide/aria/combobox.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Use documented patterns instead when:
5151
- Single-selection dropdowns are needed - See the [Select pattern](guide/aria/select) for complete dropdown implementation
5252
- Multiple-selection dropdowns are needed - See the [Multiselect pattern](guide/aria/multiselect) for multi-select with compact display
5353

54-
Note: The [Autocomplete](guide/aria/autocomplete), [Select](guide/aria/select), and [Multiselect](guide/aria/multiselect) guides show documented patterns that combine this directive with [Listbox](guide/aria/listbox) for specific use cases.
54+
NOTE: The [Autocomplete](guide/aria/autocomplete), [Select](guide/aria/select), and [Multiselect](guide/aria/multiselect) guides show documented patterns that combine this directive with [Listbox](guide/aria/listbox) for specific use cases.
5555

5656
## Features
5757

adev-ja/src/content/guide/aria/grid.en.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
A grid enables users to navigate two-dimensional data or interactive elements using directional arrow keys, Home, End, and Page Up/Down. Grids work for data tables, calendars, spreadsheets, and layout patterns that group related interactive elements.
1212

13-
<docs-code-multifile preview hideCode path="adev/src/content/examples/aria/grid/src/table/basic/app/app.ts">
14-
<docs-code header="TS" path="adev/src/content/examples/aria/grid/src/table/basic/app/app.ts"/>
15-
<docs-code header="HTML" path="adev/src/content/examples/aria/grid/src/table/basic/app/app.html"/>
16-
<docs-code header="CSS" path="adev/src/content/examples/aria/grid/src/table/basic/app/app.css"/>
13+
<docs-code-multifile preview hideCode path="adev/src/content/examples/aria/grid/src/overview/basic/app/app.ts">
14+
<docs-code header="TS" path="adev/src/content/examples/aria/grid/src/overview/basic/app/app.ts"/>
15+
<docs-code header="HTML" path="adev/src/content/examples/aria/grid/src/overview/basic/app/app.html"/>
16+
<docs-code header="CSS" path="adev/src/content/examples/aria/grid/src/overview/basic/app/app.css"/>
1717
</docs-code-multifile>
1818

1919
## Usage

adev-ja/src/content/guide/aria/listbox.en.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,19 @@ With `orientation="horizontal"`, left and right arrow keys navigate between opti
108108

109109
### Selection modes
110110

111-
Listbox supports two selection modes that control when items become selected. Choose the mode that matches your interface's interaction pattern.
111+
Listbox supports two selection modes that control when items become selected.
112112

113-
<docs-code-multifile preview hideCode path="adev/src/content/examples/aria/listbox/src/modes/app/app.ts">
113+
<!-- <docs-code-multifile preview hideCode path="adev/src/content/examples/aria/listbox/src/modes/app/app.ts">
114114
<docs-code header="app.ts" path="adev/src/content/examples/aria/listbox/src/modes/app/app.ts" />
115115
<docs-code header="app.html" path="adev/src/content/examples/aria/listbox/src/modes/app/app.html" />
116-
</docs-code-multifile>
116+
</docs-code-multifile> -->
117+
118+
| Mode | Description |
119+
| ------------ | ------------------------------------------------------------------------------------------------------ |
120+
| `'follow'` | Automatically selects the focused item, providing faster interaction when selection changes frequently |
121+
| `'explicit'` | Requires Space or Enter to confirm selection, preventing accidental changes while navigating |
117122

118-
The `'follow'` mode automatically selects the focused item, providing faster interaction when selection changes frequently. The `'explicit'` mode requires Space or Enter to confirm selection, preventing accidental changes while navigating. Dropdown patterns typically use `'follow'` mode for single selection.
123+
TIP: Dropdown patterns typically use `'follow'` mode for single selection.
119124

120125
## APIs
121126

adev-ja/src/content/guide/aria/overview.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## What is Angular Aria?
55

6-
Building accessible components seems straightforward, but implementing them according to the W3 Accessibility Guidelines requires significant effort and accessibility expertise.
6+
Building accessible components seems straightforward, but implementing them according to the W3C Accessibility Guidelines requires significant effort and accessibility expertise.
77

88
Angular Aria is a collection of headless, accessible directives that implement common WAI-ARIA patterns. The directives handle keyboard interactions, ARIA attributes, focus management, and screen reader support. All you have to do is provide the HTML structure, CSS styling, and business logic!
99

adev-ja/src/content/guide/directives/attribute-directives.en.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ HELPFUL: Directives _do not_ support namespaces.
3333

3434
## Applying an attribute directive
3535

36-
1. To use the `HighlightDirective`, add a `<p>` element to the HTML template with the directive as an attribute.
36+
To use the `HighlightDirective`, add a `<p>` element to the HTML template with the directive as an attribute.
3737

3838
<docs-code header="app.component.html" path="adev/src/content/examples/attribute-directives/src/app/app.component.1.html" visibleRegion="applied"/>
3939

@@ -45,11 +45,11 @@ This section shows you how to detect when a user mouses into or out of the eleme
4545

4646
1. Configure host event bindings using the `host` property in the `@Directive()` decorator.
4747

48-
<docs-code header="src/app/highlight.directive.ts (decorator)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.2.ts" visibleRegion="decorator"/>
48+
<docs-code header="src/app/highlight.directive.ts (decorator)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.2.ts" visibleRegion="decorator"/>
4949

5050
1. Add two event handler methods, and map host element events to them via the `host` property.
5151

52-
<docs-code header="highlight.directive.ts (mouse-methods)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.2.ts" visibleRegion="mouse-methods"/>
52+
<docs-code header="highlight.directive.ts (mouse-methods)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.2.ts" visibleRegion="mouse-methods"/>
5353

5454
Subscribe to events of the DOM element that hosts an attribute directive (the `<p>` in this case) by configuring event listeners on the directive's [`host` property](guide/components/host-elements#binding-to-the-host-element).
5555

@@ -69,19 +69,19 @@ This section walks you through setting the highlight color while applying the `H
6969

7070
1. In `highlight.directive.ts`, import `Input` from `@angular/core`.
7171

72-
<docs-code header="highlight.directive.ts (imports)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.3.ts" visibleRegion="imports"/>
72+
<docs-code header="highlight.directive.ts (imports)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.3.ts" visibleRegion="imports"/>
7373

74-
2. Add an `appHighlight` `input` property.
74+
1. Add an `appHighlight` `input` property.
7575

7676
<docs-code header="highlight.directive.ts" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.3.ts" visibleRegion="input"/>
7777

7878
The `input()` function adds metadata to the class that makes the directive's `appHighlight` property available for binding.
7979

80-
3. In `app.component.ts`, add a `color` property to the `AppComponent`.
80+
1. In `app.component.ts`, add a `color` property to the `AppComponent`.
8181

82-
<docs-code header="app.component.ts (class)" path="adev/src/content/examples/attribute-directives/src/app/app.component.1.ts" visibleRegion="class"/>
82+
<docs-code header="app.component.ts (class)" path="adev/src/content/examples/attribute-directives/src/app/app.component.1.ts" visibleRegion="class"/>
8383

84-
4. To simultaneously apply the directive and the color, use property binding with the `appHighlight` directive selector, setting it equal to `color`.
84+
1. To simultaneously apply the directive and the color, use property binding with the `appHighlight` directive selector, setting it equal to `color`.
8585

8686
<docs-code header="app.component.html (color)" path="adev/src/content/examples/attribute-directives/src/app/app.component.html" visibleRegion="color"/>
8787

@@ -95,33 +95,32 @@ This section guides you through adding radio buttons to bind your color choice t
9595

9696
1. Add markup to `app.component.html` for choosing a color as follows:
9797

98-
<docs-code header="app.component.html (v2)" path="adev/src/content/examples/attribute-directives/src/app/app.component.html" visibleRegion="v2"/>
98+
<docs-code header="app.component.html (v2)" path="adev/src/content/examples/attribute-directives/src/app/app.component.html" visibleRegion="v2"/>
9999

100-
1. Revise the `AppComponent.color` so that it has no initial value.
100+
2. Revise the `AppComponent.color` so that it has no initial value.
101101

102-
<docs-code header="app.component.ts (class)" path="adev/src/content/examples/attribute-directives/src/app/app.component.ts" visibleRegion="class"/>
102+
<docs-code header="app.component.ts (class)" path="adev/src/content/examples/attribute-directives/src/app/app.component.ts" visibleRegion="class"/>
103103

104-
1. In `highlight.directive.ts`, revise `onMouseEnter` method so that it first tries to highlight with `appHighlight` and falls back to `red` if `appHighlight` is `undefined`.
104+
3. In `highlight.directive.ts`, revise `onMouseEnter` method so that it first tries to highlight with `appHighlight` and falls back to `red` if `appHighlight` is `undefined`.
105+
<docs-code header="highlight.directive.ts (mouse-enter)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.3.ts" visibleRegion="mouse-enter"/>
105106

106-
<docs-code header="highlight.directive.ts (mouse-enter)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.3.ts" visibleRegion="mouse-enter"/>
107+
4. Serve your application to verify that the user can choose the color with the radio buttons.
107108

108-
1. Serve your application to verify that the user can choose the color with the radio buttons.
109-
110-
<img alt="Animated gif of the refactored highlight directive changing color according to the radio button the user selects" src="assets/images/guide/attribute-directives/highlight-directive-v2-anim.gif">
109+
<img alt="Animated gif of the refactored highlight directive changing color according to the radio button the user selects" src="assets/images/guide/attribute-directives/highlight-directive-v2-anim.gif">
111110

112111
## Binding to a second property
113112

114113
This section guides you through configuring your application so the developer can set the default color.
115114

116115
1. Add a second `input()` property to `HighlightDirective` called `defaultColor`.
117116

118-
<docs-code header="highlight.directive.ts (defaultColor)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.ts" visibleRegion="defaultColor"/>
117+
<docs-code header="highlight.directive.ts (defaultColor)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.ts" visibleRegion="defaultColor"/>
119118

120-
1. Revise the directive's `onMouseEnter` so that it first tries to highlight with the `appHighlight`, then with the `defaultColor`, and falls back to `red` if both properties are `undefined`.
119+
2. Revise the directive's `onMouseEnter` so that it first tries to highlight with the `appHighlight`, then with the `defaultColor`, and falls back to `red` if both properties are `undefined`.
121120

122-
<docs-code header="highlight.directive.ts (mouse-enter)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.ts" visibleRegion="mouse-enter"/>
121+
<docs-code header="highlight.directive.ts (mouse-enter)" path="adev/src/content/examples/attribute-directives/src/app/highlight.directive.ts" visibleRegion="mouse-enter"/>
123122

124-
1. To bind to the `AppComponent.color` and fall back to "violet" as the default color, add the following HTML.
123+
3. To bind to the `AppComponent.color` and fall back to "violet" as the default color, add the following HTML.
125124
In this case, the `defaultColor` binding doesn't use square brackets, `[]`, because it is static.
126125

127126
<docs-code header="app.component.html (defaultColor)" path="adev/src/content/examples/attribute-directives/src/app/app.component.html" visibleRegion="defaultColor"/>

adev-ja/src/content/guide/forms/reactive-forms.en.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,36 @@ Each time a new alias instance is added, the new form array instance is provided
381381

382382
</docs-step>
383383

384+
### Using `FormArrayDirective` for top-level form arrays
385+
386+
You can bind a `FormArray` directly to a `<form>` element by using the `FormArrayDirective`.
387+
This is useful when the form does not use a top-level `FormGroup`, and the array itself represents the full form model.
388+
389+
```angular-ts
390+
import { Component } from '@angular/core';
391+
import { FormArray, FormControl } from '@angular/forms';
392+
393+
@Component({
394+
selector: 'form-array-example',
395+
template: `
396+
<form [formArray]="form">
397+
@for (control of form.controls; track $index) {
398+
<input [formControlName]="$index">
399+
}
400+
</form>
401+
`,
402+
})
403+
export class FormArrayExampleComponent {
404+
controls = [
405+
new FormControl('fish'),
406+
new FormControl('cat'),
407+
new FormControl('dog'),
408+
];
409+
410+
form = new FormArray(this.controls);
411+
}
412+
```
413+
384414
<docs-step title="Add an alias">
385415

386416
Initially, the form contains one `Alias` field. To add another field, click the **Add Alias** button. You can also validate the array of aliases reported by the form model displayed by `Form Value` at the bottom of the template. Instead of a form control instance for each alias, you can compose another form group instance with additional fields. The process of defining a control for each item is the same.
@@ -542,3 +572,4 @@ For complete syntax details, see the API reference documentation for the [Forms
542572
| `FormGroupDirective` | Syncs an existing `FormGroup` instance to a DOM element. |
543573
| `FormGroupName` | Syncs a nested `FormGroup` instance to a DOM element. |
544574
| `FormArrayName` | Syncs a nested `FormArray` instance to a DOM element. |
575+
| `FormArrayDirective` | Syncs a standalone `FormArray` instance to a DOM element. |

adev-ja/src/content/guide/http/interceptors.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ CRITICAL: The body of a request or response is **not** protected from deep mutat
8585

8686
## Dependency injection in interceptors
8787

88-
Interceptors are run in the _injection context_ of the injector which registered them, and can use Angular's `inject` API to retrieve dependencies.
88+
Interceptors are run in the _injection context_ of the injector which registered them, and can use Angular's [`inject`](/api/core/inject) API to retrieve dependencies.
8989

9090
For example, suppose an application has a service called `AuthService`, which creates authentication tokens for outgoing requests. An interceptor can inject and use this service:
9191

0 commit comments

Comments
 (0)