Skip to content

Commit 402eaa1

Browse files
anastasiaanisimovathePunderWoman
authored andcommitted
docs: fix deferrable views doc links (angular#62293)
PR Close angular#62293
1 parent 13875d0 commit 402eaa1

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

adev/src/content/guide/templates/defer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Angular's compiler produces a [dynamic import](https://developer.mozilla.org/en-
3333

3434
### `@defer`
3535

36-
This is the primary block that defines the section of content that is lazily loaded. It is not rendered initially– deferred content loads and renders once the specified [trigger](/guide/defer#triggers) occurs or the `when` condition is met.
36+
This is the primary block that defines the section of content that is lazily loaded. It is not rendered initially– deferred content loads and renders once the specified [trigger](/guide/templates/defer#triggers) occurs or the `when` condition is met.
3737

38-
By default, a @defer block is triggered when the browser state becomes [idle](/guide/defer#idle).
38+
By default, a @defer block is triggered when the browser state becomes [idle](/guide/templates/defer#idle).
3939

4040
```angular-html
4141
@defer {
@@ -57,7 +57,7 @@ The `@placeholder` is an optional block that declares what content to show befor
5757
}
5858
```
5959

60-
While optional, certain triggers may require the presence of either a `@placeholder` or a [template reference variable](/guide/templates/variables#template-reference-variables) to function. See the [Triggers](/guide/defer#triggers) section for more details.
60+
While optional, certain triggers may require the presence of either a `@placeholder` or a [template reference variable](/guide/templates/variables#template-reference-variables) to function. See the [Triggers](/guide/templates/defer#triggers) section for more details.
6161

6262
Angular replaces placeholder content with the main content once loading is complete. You can use any content in the placeholder section including plain HTML, components, directives, and pipes. Keep in mind the _dependencies of the placeholder block are eagerly loaded_.
6363

adev/src/content/tutorials/deferrable-views/steps/2-loading-error-placeholder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Deferrable views let you define content to be shown in different loading states.
88
<td><code>@placeholder</code></td>
99
<td>
1010
By default, defer blocks do not render any content before they are triggered. The <code>@placeholder</code> is an optional block that declares content to show before the deferred content loads. Angular replaces the placeholder with the deferred content after loading completes. While this block is optional, the Angular team recommends always including a placeholder.
11-
<a href="https://angular.dev/guide/defer#triggers" target="_blank">
11+
<a href="https://angular.dev/guide/templates/defer#triggers" target="_blank">
1212
Learn more in the full deferrable views documentation
1313
</a>
1414
</td>

adev/src/llms-full.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,9 +2738,9 @@ Angular's compiler produces a [dynamic import](https://developer.mozilla.org/en-
27382738

27392739
### `@defer`
27402740

2741-
This is the primary block that defines the section of content that is lazily loaded. It is not rendered initially– deferred content loads and renders once the specified [trigger](/guide/defer#triggers) occurs or the `when` condition is met.
2741+
This is the primary block that defines the section of content that is lazily loaded. It is not rendered initially– deferred content loads and renders once the specified [trigger](/guide/templates/defer#triggers) occurs or the `when` condition is met.
27422742

2743-
By default, a @defer block is triggered when the browser state becomes [idle](/guide/defer#idle).
2743+
By default, a @defer block is triggered when the browser state becomes [idle](/guide/templates/defer#idle).
27442744

27452745
```html
27462746
@defer {
@@ -2762,7 +2762,7 @@ The `@placeholder` is an optional block that declares what content to show befor
27622762
}
27632763
```
27642764

2765-
While optional, certain triggers may require the presence of either a `@placeholder` or a [template reference variable](/guide/templates/variables#template-reference-variables) to function. See the [Triggers](/guide/defer#triggers) section for more details.
2765+
While optional, certain triggers may require the presence of either a `@placeholder` or a [template reference variable](/guide/templates/variables#template-reference-variables) to function. See the [Triggers](/guide/templates/defer#triggers) section for more details.
27662766

27672767
Angular replaces placeholder content with the main content once loading is complete. You can use any content in the placeholder section including plain HTML, components, directives, and pipes. Keep in mind the _dependencies of the placeholder block are eagerly loaded_.
27682768

packages/language-service/src/quick_info_built_ins.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,22 @@ const BUILT_IN_NAMES_TO_DOC_MAP: {
139139
} = {
140140
'@defer': {
141141
docString: `A type of block that can be used to defer load the JavaScript for components, directives and pipes used inside a component template.`,
142-
links: ['[Reference](https://angular.dev/guide/defer#defer)'],
142+
links: ['[Reference](https://angular.dev/guide/templates/defer#defer)'],
143143
displayInfoKind: DisplayInfoKind.BLOCK,
144144
},
145145
'@placeholder': {
146146
docString: `A block for content shown prior to defer loading (Optional)`,
147-
links: ['[Reference](https://angular.dev/guide/defer#placeholder)'],
147+
links: ['[Reference](https://angular.dev/guide/templates/defer#placeholder)'],
148148
displayInfoKind: DisplayInfoKind.BLOCK,
149149
},
150150
'@error': {
151151
docString: `A block for content shown when defer loading errors occur (Optional)`,
152-
links: ['[Reference](https://angular.dev/guide/defer#error)'],
152+
links: ['[Reference](https://angular.dev/guide/templates/defer#error)'],
153153
displayInfoKind: DisplayInfoKind.BLOCK,
154154
},
155155
'@loading': {
156156
docString: `A block for content shown during defer loading (Optional)`,
157-
links: ['[Reference](https://angular.dev/guide/defer#loading)'],
157+
links: ['[Reference](https://angular.dev/guide/templates/defer#loading)'],
158158
displayInfoKind: DisplayInfoKind.BLOCK,
159159
},
160160
'@empty': {
@@ -173,38 +173,38 @@ const BUILT_IN_NAMES_TO_DOC_MAP: {
173173
},
174174
'idle': {
175175
docString: triggerDescriptionPreamble + `the browser reports idle state (default).`,
176-
links: ['[Reference](https://angular.dev/guide/defer#on-idle)'],
176+
links: ['[Reference](https://angular.dev/guide/templates/defer#on-idle)'],
177177
displayInfoKind: DisplayInfoKind.TRIGGER,
178178
},
179179
'immediate': {
180180
docString: triggerDescriptionPreamble + `the page finishes rendering.`,
181-
links: ['[Reference](https://angular.dev/guide/defer#on-immediate)'],
181+
links: ['[Reference](https://angular.dev/guide/templates/defer#on-immediate)'],
182182
displayInfoKind: DisplayInfoKind.TRIGGER,
183183
},
184184
'hover': {
185185
docString: triggerDescriptionPreamble + `the element has been hovered.`,
186-
links: ['[Reference](https://angular.dev/guide/defer#on-hover)'],
186+
links: ['[Reference](https://angular.dev/guide/templates/defer#on-hover)'],
187187
displayInfoKind: DisplayInfoKind.TRIGGER,
188188
},
189189
'timer': {
190190
docString: triggerDescriptionPreamble + `a specific timeout.`,
191-
links: ['[Reference](https://angular.dev/guide/defer#on-timer)'],
191+
links: ['[Reference](https://angular.dev/guide/templates/defer#on-timer)'],
192192
displayInfoKind: DisplayInfoKind.TRIGGER,
193193
},
194194
'interaction': {
195195
docString: triggerDescriptionPreamble + `the element is clicked, touched, or focused.`,
196-
links: ['[Reference](https://angular.dev/guide/defer#on-interaction)'],
196+
links: ['[Reference](https://angular.dev/guide/templates/defer#on-interaction)'],
197197
displayInfoKind: DisplayInfoKind.TRIGGER,
198198
},
199199
'viewport': {
200200
docString: triggerDescriptionPreamble + `the element enters the viewport.`,
201-
links: ['[Reference](https://angular.dev/guide/defer#on-viewport)'],
201+
links: ['[Reference](https://angular.dev/guide/templates/defer#on-viewport)'],
202202
displayInfoKind: DisplayInfoKind.TRIGGER,
203203
},
204204
'prefetch': {
205205
docString:
206206
'Keyword that indicates that the trigger configures when prefetching the defer block contents should start. You can use `on` and `when` conditions as prefetch triggers.',
207-
links: ['[Reference](https://angular.dev/guide/defer#prefetching)'],
207+
links: ['[Reference](https://angular.dev/guide/templates/defer#prefetching)'],
208208
displayInfoKind: DisplayInfoKind.KEYWORD,
209209
},
210210
'hydrate': {
@@ -217,13 +217,13 @@ const BUILT_IN_NAMES_TO_DOC_MAP: {
217217
'when': {
218218
docString:
219219
'Keyword that starts the expression-based trigger section. Should be followed by an expression that returns a boolean.',
220-
links: ['[Reference](https://angular.dev/guide/defer#triggers)'],
220+
links: ['[Reference](https://angular.dev/guide/templates/defer#triggers)'],
221221
displayInfoKind: DisplayInfoKind.KEYWORD,
222222
},
223223
'on': {
224224
docString:
225225
'Keyword that starts the event-based trigger section. Should be followed by one of the built-in triggers.',
226-
links: ['[Reference](https://angular.dev/guide/defer#triggers)'],
226+
links: ['[Reference](https://angular.dev/guide/templates/defer#triggers)'],
227227
displayInfoKind: DisplayInfoKind.KEYWORD,
228228
},
229229
};

0 commit comments

Comments
 (0)