Skip to content

Commit 4eb3724

Browse files
authored
fix: update 18.2.12 (#989)
* fix: update origin * fix: migrate tutorial * fix: migrate reference contents * fix: migrate guide contents * fix: update top-level banner patch * fix: address lint errors
1 parent 26f3423 commit 4eb3724

File tree

115 files changed

+855
-287
lines changed

Some content is hidden

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

115 files changed

+855
-287
lines changed

adev-ja/src/app/features/update/recommendations.en.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2258,9 +2258,9 @@ export const RECOMMENDATIONS: Step[] = [
22582258
possibleIn: 1800,
22592259
necessaryAsOf: 1800,
22602260
level: ApplicationComplexity.Medium,
2261-
step: '18.0.0. Opt-out of caching for HTTP requests with auth headers',
2261+
step: '18.0.0. Opt-in of caching for HTTP requests with auth headers',
22622262
action:
2263-
'Use `includeRequestsWithAuthHeaders: true` in `withHttpTransferCache` to opt-out of caching for HTTP requests that require authorization.',
2263+
'Use `includeRequestsWithAuthHeaders: true` in `withHttpTransferCache` to opt-in of caching for HTTP requests that require authorization.',
22642264
},
22652265
{
22662266
possibleIn: 1800,

adev-ja/src/app/sub-navigation-data.en.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {NavigationItem} from '@angular/docs';
1111
// These 2 imports are expected to be red because they are generated a build time
1212
import FIRST_APP_TUTORIAL_NAV_DATA from '../../src/assets/tutorials/first-app/routes.json';
1313
import LEARN_ANGULAR_TUTORIAL_NAV_DATA from '../../src/assets/tutorials/learn-angular/routes.json';
14+
import DEFERRABLE_VIEWS_TUTORIAL_NAV_DATA from '../../src/assets/tutorials/deferrable-views/routes.json';
1415

1516
import {DefaultPage} from './core/enums/pages';
1617
import {getApiNavigationItems} from './features/references/helpers/manifest.helper';
@@ -872,6 +873,7 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
872873
export const TUTORIALS_SUB_NAVIGATION_DATA: NavigationItem[] = [
873874
FIRST_APP_TUTORIAL_NAV_DATA,
874875
LEARN_ANGULAR_TUTORIAL_NAV_DATA,
876+
DEFERRABLE_VIEWS_TUTORIAL_NAV_DATA,
875877
{
876878
path: DefaultPage.TUTORIALS,
877879
contentPath: 'tutorials/home',
@@ -948,7 +950,7 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
948950
path: 'cli/cache',
949951
},
950952
{
951-
label: 'clear',
953+
label: 'clean',
952954
path: 'cli/cache/clean',
953955
},
954956
{
@@ -1219,7 +1221,7 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
12191221
contentPath: 'reference/errors/NG0507',
12201222
},
12211223
{
1222-
label: 'NG0602: HTML content was altered after server-side rendering',
1224+
label: 'NG0602: Disallowed function call inside reactive context',
12231225
path: 'errors/NG0602',
12241226
contentPath: 'reference/errors/NG0602',
12251227
},

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

+28-33
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This section examines several common change detection scenarios to illustrate An
3131

3232
If Angular handles an event within a component without `OnPush` strategy, the framework executes change detection on the entire component tree. Angular will skip descendant component subtrees with roots using `OnPush`, which have not received new inputs.
3333

34-
As an example, if we set the change detection strategy of `MainComponent` to `OnPush` and the user interacts with a component outside the subtree with root `MainComponent`, Angular will check all the green components from the diagram below (`AppComponent`, `HeaderComponent`, `SearchComponent`, `ButtonComponent`) unless `MainComponent` receives new inputs:
34+
As an example, if we set the change detection strategy of `MainComponent` to `OnPush` and the user interacts with a component outside the subtree with root `MainComponent`, Angular will check all the pink components from the diagram below (`AppComponent`, `HeaderComponent`, `SearchComponent`, `ButtonComponent`) unless `MainComponent` receives new inputs:
3535

3636
```mermaid
3737
graph TD;
@@ -43,14 +43,11 @@ graph TD;
4343
main --- details[DetailsComponent];
4444
event>Event] --- search
4545
46-
style main fill:#E4BE74,color:#000
47-
style login fill:#E4BE74,color:#000
48-
style details fill:#E4BE74,color:#000
49-
50-
style app fill:#C1D5B0,color:#000
51-
style header fill:#C1D5B0,color:#000
52-
style button fill:#C1D5B0,color:#000
53-
style search fill:#C1D5B0,color:#000
46+
class app checkedNode
47+
class header checkedNode
48+
class button checkedNode
49+
class search checkedNode
50+
class event eventNode
5451
```
5552

5653
## An event is handled by a component with OnPush
@@ -69,14 +66,13 @@ graph TD;
6966
main --- details[DetailsComponent];
7067
event>Event] --- main
7168
72-
style login fill:#E4BE74,color:#000
73-
74-
style app fill:#C1D5B0,color:#000
75-
style header fill:#C1D5B0,color:#000
76-
style button fill:#C1D5B0,color:#000
77-
style search fill:#C1D5B0,color:#000
78-
style main fill:#C1D5B0,color:#000
79-
style details fill:#C1D5B0,color:#000
69+
class app checkedNode
70+
class header checkedNode
71+
class button checkedNode
72+
class search checkedNode
73+
class main checkedNode
74+
class details checkedNode
75+
class event eventNode
8076
```
8177

8278
## An event is handled by a descendant of a component with OnPush
@@ -95,13 +91,14 @@ graph TD;
9591
main --- details[DetailsComponent];
9692
event>Event] --- login
9793
98-
style app fill:#C1D5B0,color:#000
99-
style header fill:#C1D5B0,color:#000
100-
style button fill:#C1D5B0,color:#000
101-
style search fill:#C1D5B0,color:#000
102-
style login fill:#C1D5B0,color:#000
103-
style main fill:#C1D5B0,color:#000
104-
style details fill:#C1D5B0,color:#000
94+
class app checkedNode
95+
class header checkedNode
96+
class button checkedNode
97+
class search checkedNode
98+
class login checkedNode
99+
class main checkedNode
100+
class details checkedNode
101+
class event eventNode
105102
```
106103

107104
## New inputs to component with OnPush
@@ -120,15 +117,13 @@ graph TD;
120117
main --- details[DetailsComponent];
121118
event>Parent passes new input to MainComponent]
122119
123-
style login fill:#E4BE74,color:#000
124-
125-
linkStyle 1 stroke:green
126-
style app fill:#C1D5B0,color:#000
127-
style header fill:#C1D5B0,color:#000
128-
style button fill:#C1D5B0,color:#000
129-
style search fill:#C1D5B0,color:#000
130-
style main fill:#C1D5B0,color:#000
131-
style details fill:#C1D5B0,color:#000
120+
class app checkedNode
121+
class header checkedNode
122+
class button checkedNode
123+
class search checkedNode
124+
class main checkedNode
125+
class details checkedNode
126+
class event eventNode
132127
```
133128

134129
## Edge cases

adev-ja/src/content/best-practices/update.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ HELPFUL: If you are currently using AngularJS, see [Upgrading from AngularJS](ht
1313

1414
## Getting notified of new releases
1515

16-
To be notified when new releases are available, follow [@angular](https://twitter.com/angular "@angular on Twitter") on Twitter or subscribe to the [Angular blog](https://blog.angular.dev "Angular blog").
16+
To be notified when new releases are available, follow [@angular](https://x.com/angular "@angular on X") on X (formerly Twitter) or subscribe to the [Angular blog](https://blog.angular.dev "Angular blog").
1717

1818
## Learning about new features
1919

adev-ja/src/content/best-practices/update.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ HELPFUL: 現在AngularJSを使用している場合は、[AngularJS からのア
1313

1414
## 新しいリリースの通知を受け取る
1515

16-
新しいリリースが利用可能になったときに通知を受け取るには、Twitterで [@angular](https://twitter.com/angular "@angular on Twitter") をフォローするか、[Angular ブログ](https://blog.angular.dev "Angular ブログ")を購読してください。
16+
新しいリリースが利用可能になったときに通知を受け取るには、Twitterで [@angular](https://x.com/angular "@angular on X (formerly Twitter)") をフォローするか、[Angular ブログ](https://blog.angular.dev "Angular ブログ")を購読してください。
1717

1818
## 新しい機能について学ぶ
1919

0 commit comments

Comments
 (0)