Skip to content

Commit c698668

Browse files
ViktorTyultinovAndrewKushnir
authored andcommitted
docs: language-service - Fix quick info URLs (#56416)
- Made the links more specific - Removed the AIO notation PR Close #56416
1 parent d5ecd2c commit c698668

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

packages/language-service/src/quick_info_built_ins.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,80 +137,82 @@ const BUILT_IN_NAMES_TO_DOC_MAP: {
137137
} = {
138138
'@defer': {
139139
docString: `A type of block that can be used to defer load the JavaScript for components, directives and pipes used inside a component template.`,
140-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
140+
links: ['[Reference](https://angular.dev/guide/defer#defer)'],
141141
displayInfoKind: DisplayInfoKind.BLOCK,
142142
},
143143
'@placeholder': {
144144
docString: `A block for content shown prior to defer loading (Optional)`,
145-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
145+
links: ['[Reference](https://angular.dev/guide/defer#placeholder)'],
146146
displayInfoKind: DisplayInfoKind.BLOCK,
147147
},
148148
'@error': {
149149
docString: `A block for content shown when defer loading errors occur (Optional)`,
150-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
150+
links: ['[Reference](https://angular.dev/guide/defer#error)'],
151151
displayInfoKind: DisplayInfoKind.BLOCK,
152152
},
153153
'@loading': {
154154
docString: `A block for content shown during defer loading (Optional)`,
155-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
155+
links: ['[Reference](https://angular.dev/guide/defer#loading)'],
156156
displayInfoKind: DisplayInfoKind.BLOCK,
157157
},
158158
'@empty': {
159159
docString: `A block to display when the for loop variable is empty.`,
160-
links: ['[AIO Reference](https://next.angular.io/api/core/for)'],
160+
links: ['[Reference](https://angular.dev/guide/templates/control-flow#for-block---repeaters)'],
161161
displayInfoKind: DisplayInfoKind.BLOCK,
162162
},
163163
'track': {
164164
docString: `Keyword to control how the for loop compares items in the list to compute updates.`,
165-
links: ['[AIO Reference](https://next.angular.io/api/core/for)'],
165+
links: [
166+
'[Reference](https://angular.dev/guide/templates/control-flow#track-for-calculating-difference-of-two-collections)',
167+
],
166168
displayInfoKind: DisplayInfoKind.KEYWORD,
167169
},
168170
'idle': {
169171
docString: triggerDescriptionPreamble + `the browser reports idle state (default).`,
170-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
172+
links: ['[Reference](https://angular.dev/guide/defer#on-idle)'],
171173
displayInfoKind: DisplayInfoKind.TRIGGER,
172174
},
173175
'immediate': {
174176
docString: triggerDescriptionPreamble + `the page finishes rendering.`,
175-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
177+
links: ['[Reference](https://angular.dev/guide/defer#on-immediate)'],
176178
displayInfoKind: DisplayInfoKind.TRIGGER,
177179
},
178180
'hover': {
179181
docString: triggerDescriptionPreamble + `the element has been hovered.`,
180-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
182+
links: ['[Reference](https://angular.dev/guide/defer#on-hover)'],
181183
displayInfoKind: DisplayInfoKind.TRIGGER,
182184
},
183185
'timer': {
184186
docString: triggerDescriptionPreamble + `a specific timeout.`,
185-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
187+
links: ['[Reference](https://angular.dev/guide/defer#on-timer)'],
186188
displayInfoKind: DisplayInfoKind.TRIGGER,
187189
},
188190
'interaction': {
189191
docString: triggerDescriptionPreamble + `the element is clicked, touched, or focused.`,
190-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
192+
links: ['[Reference](https://angular.dev/guide/defer#on-interaction)'],
191193
displayInfoKind: DisplayInfoKind.TRIGGER,
192194
},
193195
'viewport': {
194196
docString: triggerDescriptionPreamble + `the element enters the viewport.`,
195-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
197+
links: ['[Reference](https://angular.dev/guide/defer#on-viewport)'],
196198
displayInfoKind: DisplayInfoKind.TRIGGER,
197199
},
198200
'prefetch': {
199201
docString:
200202
'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.',
201-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
203+
links: ['[Reference](https://angular.dev/guide/defer#prefetching)'],
202204
displayInfoKind: DisplayInfoKind.KEYWORD,
203205
},
204206
'when': {
205207
docString:
206208
'Keyword that starts the expression-based trigger section. Should be followed by an expression that returns a boolean.',
207-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
209+
links: ['[Reference](https://angular.dev/guide/defer#triggers)'],
208210
displayInfoKind: DisplayInfoKind.KEYWORD,
209211
},
210212
'on': {
211213
docString:
212214
'Keyword that starts the event-based trigger section. Should be followed by one of the built-in triggers.',
213-
links: ['[AIO Reference](https://next.angular.io/api/core/defer)'],
215+
links: ['[Reference](https://angular.dev/guide/defer#triggers)'],
214216
displayInfoKind: DisplayInfoKind.KEYWORD,
215217
},
216218
};

0 commit comments

Comments
 (0)