Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7244611

Browse files
committed
fix(docs): replace dead link to event loop
1 parent d8fdf08 commit 7244611

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/docs/docs/cdk/render-strategies/strategies/basic-strategies.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ This means for every emitted value [`ChangeDetectorRef#markForCheck`](https://gi
9797
Angular still needs zone.js to trigger the [`ApplicationRef#tick`](https://github.com/angular/angular/blob/7d8dce11c0726cdba999fc59a83295d19e5e92e6/packages/core/src/application_ref.ts#L719) to re-render,
9898
as the internally called function [`markViewDirty`](https://github.com/angular/angular/blob/930eeaf177a4c277f437f42314605ff8dc56fc82/packages/core/src/render3/instructions/shared.ts#L1837) is only responsible for dirty marking and not rendering.
9999

100-
| Name | Zone Agnostic | Render Method | Coalescing | Scheduling |
101-
| -------- | ------------- | ---------------- | ------------- | ----------------------- |
100+
| Name | Zone Agnostic | Render Method | Coalescing | Scheduling |
101+
| -------- | ------------- | ---------------- | -------------- | ----------------------- |
102102
| `native` ||`markForCheck` | ✔ RootContext | `requestAnimationFrame` |
103103

104104
#### Local
@@ -112,17 +112,17 @@ As detectChanges has no coalescing of render calls
112112
like [`ChangeDetectorRef#markForCheck`](https://github.com/angular/angular/blob/930eeaf177a4c277f437f42314605ff8dc56fc82/packages/core/src/render3/view_ref.ts#L128) or [`ɵmarkDirty`](https://github.com/angular/angular/blob/930eeaf177a4c277f437f42314605ff8dc56fc82/packages/core/src/render3/instructions/change_detection.ts#L36) have, we apply our own coalescing, 'scoped' on component level.
113113

114114
Coalescing, in this very manner, means _collecting all events_ in the same
115-
[EventLoop](https://developer.mozilla.org/de/docs/Web/JavaScript/EventLoop) tick, that would cause a re-render. Then execute re-rendering only _once_.
115+
[EventLoop](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop) tick, that would cause a re-render. Then execute re-rendering only _once_.
116116

117117
'Scoped' coalescing, in addition, means _grouping the collected events_ by a specific context.
118118
E. g. the _component_ from which the re-rendering was initiated.
119119

120120
This context could be the Component instance or a `ViewContextRef`,
121121
both accessed over the context over `ChangeDetectorRef#context`.
122122

123-
| Name | Zone Agnostic | Render Method | Coalescing | Scheduling |
124-
| ------- | ------------- | ----------------- | ------------------ | ----------------------- |
125-
| `local` | | 🠗 `detectChanges` | ✔ ComponentContext | `requestAnimationFrame` |
123+
| Name | Zone Agnostic | Render Method | Coalescing | Scheduling |
124+
| ------- | ------------- | ----------------- | ------------------- | ----------------------- |
125+
| `local` || 🠗 `detectChanges` | ✔ ComponentContext | `requestAnimationFrame` |
126126

127127
The best place to use the local strategy is a structural directive like `*rxLet`. Those will have a independent template from the component and perform changes only there.
128128

@@ -138,7 +138,7 @@ The no-operation strategy does nothing. It can be a valuable tool for performanc
138138

139139
| Name | Zone Agnostic | Render Method | Coalescing | Scheduling |
140140
| ------ | ------------- | ------------- | ---------- | ---------- |
141-
| `noop` | | - `noop` |||
141+
| `noop` || - `noop` |||
142142

143143
## Usage
144144

0 commit comments

Comments
 (0)