Skip to content

Commit a1ca162

Browse files
JeanMechepkozlowski-opensource
authored andcommitted
docs(docs-infra): Remove unused annotation template (#50114)
This page is unused since v7. PR Close #50114
1 parent fa83a39 commit a1ca162

File tree

7 files changed

+13
-40
lines changed

7 files changed

+13
-40
lines changed

aio/tools/transforms/templates/api/includes/annotations.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/core/src/di/injectable.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export interface Injectable {
8585
/**
8686
* Injectable decorator and metadata.
8787
*
88-
* @Annotation
8988
* @publicApi
9089
*/
9190
export const Injectable: InjectableDecorator = makeDecorator(

packages/core/src/di/metadata.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export interface Inject {
5454
/**
5555
* Inject decorator and metadata.
5656
*
57-
* @Annotation
5857
* @publicApi
5958
*/
6059
export const Inject: InjectDecorator = attachInjectFlag(
@@ -99,7 +98,7 @@ export interface Optional {}
9998
/**
10099
* Optional decorator and metadata.
101100
*
102-
* @Annotation
101+
103102
* @publicApi
104103
*/
105104
export const Optional: OptionalDecorator =
@@ -147,7 +146,7 @@ export interface Self {}
147146
/**
148147
* Self decorator and metadata.
149148
*
150-
* @Annotation
149+
151150
* @publicApi
152151
*/
153152
export const Self: SelfDecorator =
@@ -195,7 +194,7 @@ export interface SkipSelf {}
195194
/**
196195
* `SkipSelf` decorator and metadata.
197196
*
198-
* @Annotation
197+
199198
* @publicApi
200199
*/
201200
export const SkipSelf: SkipSelfDecorator =
@@ -238,7 +237,7 @@ export interface Host {}
238237
/**
239238
* Host decorator and metadata.
240239
*
241-
* @Annotation
240+
242241
* @publicApi
243242
*/
244243
export const Host: HostDecorator =

packages/core/src/di/metadata_attr.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export interface Attribute {
5656
/**
5757
* Attribute decorator and metadata.
5858
*
59-
* @Annotation
6059
* @publicApi
6160
*/
6261
export const Attribute: AttributeDecorator = makeParamDecorator(

packages/core/src/metadata/di.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ export interface ContentChildrenDecorator {
150150
*
151151
* {@example core/di/ts/contentChildren/content_children_example.ts region='Component'}
152152
*
153-
* @Annotation
154153
*/
155154
(selector: ProviderToken<unknown>|Function|string, opts?: {
156155
descendants?: boolean,
@@ -165,7 +164,6 @@ export interface ContentChildrenDecorator {
165164
* Type of the ContentChildren metadata.
166165
*
167166
*
168-
* @Annotation
169167
* @publicApi
170168
*/
171169
export type ContentChildren = Query;
@@ -174,7 +172,6 @@ export type ContentChildren = Query;
174172
* ContentChildren decorator and metadata.
175173
*
176174
*
177-
* @Annotation
178175
* @publicApi
179176
*/
180177
export const ContentChildren: ContentChildrenDecorator = makePropDecorator(
@@ -242,7 +239,6 @@ export interface ContentChildDecorator {
242239
*
243240
* {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
244241
*
245-
* @Annotation
246242
*/
247243
(selector: ProviderToken<unknown>|Function|string,
248244
opts?: {descendants?: boolean, read?: any, static?: boolean}): any;
@@ -261,7 +257,7 @@ export type ContentChild = Query;
261257
* ContentChild decorator and metadata.
262258
*
263259
*
264-
* @Annotation
260+
265261
*
266262
* @publicApi
267263
*/
@@ -328,7 +324,6 @@ export interface ViewChildrenDecorator {
328324
*
329325
* {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
330326
*
331-
* @Annotation
332327
*/
333328
(selector: ProviderToken<unknown>|Function|string,
334329
opts?: {read?: any, emitDistinctChangesOnly?: boolean}): any;
@@ -346,7 +341,7 @@ export type ViewChildren = Query;
346341
/**
347342
* ViewChildren decorator and metadata.
348343
*
349-
* @Annotation
344+
350345
* @publicApi
351346
*/
352347
export const ViewChildren: ViewChildrenDecorator = makePropDecorator(
@@ -410,7 +405,6 @@ export interface ViewChildDecorator {
410405
*
411406
* {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
412407
*
413-
* @Annotation
414408
*/
415409
(selector: ProviderToken<unknown>|Function|string, opts?: {read?: any, static?: boolean}): any;
416410
new(selector: ProviderToken<unknown>|Function|string,
@@ -427,7 +421,7 @@ export type ViewChild = Query;
427421
/**
428422
* ViewChild decorator and metadata.
429423
*
430-
* @Annotation
424+
431425
* @publicApi
432426
*/
433427
export const ViewChild: ViewChildDecorator = makePropDecorator(

packages/core/src/metadata/directives.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export interface DirectiveDecorator {
9898
* accessible for components outside of the NgModule.
9999
*
100100
*
101-
* @Annotation
102101
*/
103102
(obj?: Directive): TypeDecorator;
104103

@@ -111,7 +110,6 @@ export interface DirectiveDecorator {
111110
/**
112111
* Directive decorator and metadata.
113112
*
114-
* @Annotation
115113
* @publicApi
116114
*/
117115
export interface Directive {
@@ -291,7 +289,6 @@ export interface Directive {
291289
* }
292290
* ```
293291
*
294-
* @Annotation
295292
*/
296293
queries?: {[key: string]: any};
297294

@@ -511,7 +508,6 @@ export interface ComponentDecorator {
511508
* To preserve sequences of whitespace characters, use the
512509
* `ngPreserveWhitespaces` attribute.
513510
*
514-
* @Annotation
515511
*/
516512
(obj: Component): TypeDecorator;
517513
/**
@@ -663,7 +659,7 @@ export interface Component extends Directive {
663659
/**
664660
* Component decorator and metadata.
665661
*
666-
* @Annotation
662+
667663
* @publicApi
668664
*/
669665
export const Component: ComponentDecorator = makeDecorator(
@@ -741,7 +737,7 @@ export interface Pipe {
741737
}
742738

743739
/**
744-
* @Annotation
740+
745741
* @publicApi
746742
*/
747743
export const Pipe: PipeDecorator = makeDecorator(
@@ -820,7 +816,7 @@ export interface Input {
820816
}
821817

822818
/**
823-
* @Annotation
819+
824820
* @publicApi
825821
*/
826822
export const Input: InputDecorator =
@@ -870,7 +866,7 @@ export interface Output {
870866
}
871867

872868
/**
873-
* @Annotation
869+
874870
* @publicApi
875871
*/
876872
export const Output: OutputDecorator = makePropDecorator('Output', (alias?: string) => ({alias}));
@@ -929,7 +925,7 @@ export interface HostBinding {
929925
}
930926

931927
/**
932-
* @Annotation
928+
933929
* @publicApi
934930
*/
935931
export const HostBinding: HostBindingDecorator =
@@ -1033,7 +1029,7 @@ export interface HostListener {
10331029
* The global target names that can be used to prefix an event name are
10341030
* `document:`, `window:` and `body:`.
10351031
*
1036-
* @Annotation
1032+
10371033
* @publicApi
10381034
*/
10391035
export const HostListener: HostListenerDecorator =

packages/core/src/metadata/ng_module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ export interface NgModule {
203203
}
204204

205205
/**
206-
* @Annotation
207206
*/
208207
export const NgModule: NgModuleDecorator = makeDecorator(
209208
'NgModule', (ngModule: NgModule) => ngModule, undefined, undefined,

0 commit comments

Comments
 (0)