Skip to content

Commit

Permalink
docs(docs-infra): Remove unused annotation template (angular#50114)
Browse files Browse the repository at this point in the history
This page is unused since v7.

PR Close angular#50114
  • Loading branch information
JeanMeche authored and pkozlowski-opensource committed May 3, 2023
1 parent fa83a39 commit a1ca162
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 40 deletions.
13 changes: 0 additions & 13 deletions aio/tools/transforms/templates/api/includes/annotations.html

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/src/di/injectable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export interface Injectable {
/**
* Injectable decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const Injectable: InjectableDecorator = makeDecorator(
Expand Down
9 changes: 4 additions & 5 deletions packages/core/src/di/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export interface Inject {
/**
* Inject decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const Inject: InjectDecorator = attachInjectFlag(
Expand Down Expand Up @@ -99,7 +98,7 @@ export interface Optional {}
/**
* Optional decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const Optional: OptionalDecorator =
Expand Down Expand Up @@ -147,7 +146,7 @@ export interface Self {}
/**
* Self decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const Self: SelfDecorator =
Expand Down Expand Up @@ -195,7 +194,7 @@ export interface SkipSelf {}
/**
* `SkipSelf` decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const SkipSelf: SkipSelfDecorator =
Expand Down Expand Up @@ -238,7 +237,7 @@ export interface Host {}
/**
* Host decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const Host: HostDecorator =
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/di/metadata_attr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export interface Attribute {
/**
* Attribute decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const Attribute: AttributeDecorator = makeParamDecorator(
Expand Down
12 changes: 3 additions & 9 deletions packages/core/src/metadata/di.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export interface ContentChildrenDecorator {
*
* {@example core/di/ts/contentChildren/content_children_example.ts region='Component'}
*
* @Annotation
*/
(selector: ProviderToken<unknown>|Function|string, opts?: {
descendants?: boolean,
Expand All @@ -165,7 +164,6 @@ export interface ContentChildrenDecorator {
* Type of the ContentChildren metadata.
*
*
* @Annotation
* @publicApi
*/
export type ContentChildren = Query;
Expand All @@ -174,7 +172,6 @@ export type ContentChildren = Query;
* ContentChildren decorator and metadata.
*
*
* @Annotation
* @publicApi
*/
export const ContentChildren: ContentChildrenDecorator = makePropDecorator(
Expand Down Expand Up @@ -242,7 +239,6 @@ export interface ContentChildDecorator {
*
* {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
*
* @Annotation
*/
(selector: ProviderToken<unknown>|Function|string,
opts?: {descendants?: boolean, read?: any, static?: boolean}): any;
Expand All @@ -261,7 +257,7 @@ export type ContentChild = Query;
* ContentChild decorator and metadata.
*
*
* @Annotation
*
* @publicApi
*/
Expand Down Expand Up @@ -328,7 +324,6 @@ export interface ViewChildrenDecorator {
*
* {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
*
* @Annotation
*/
(selector: ProviderToken<unknown>|Function|string,
opts?: {read?: any, emitDistinctChangesOnly?: boolean}): any;
Expand All @@ -346,7 +341,7 @@ export type ViewChildren = Query;
/**
* ViewChildren decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const ViewChildren: ViewChildrenDecorator = makePropDecorator(
Expand Down Expand Up @@ -410,7 +405,6 @@ export interface ViewChildDecorator {
*
* {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
*
* @Annotation
*/
(selector: ProviderToken<unknown>|Function|string, opts?: {read?: any, static?: boolean}): any;
new(selector: ProviderToken<unknown>|Function|string,
Expand All @@ -427,7 +421,7 @@ export type ViewChild = Query;
/**
* ViewChild decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const ViewChild: ViewChildDecorator = makePropDecorator(
Expand Down
16 changes: 6 additions & 10 deletions packages/core/src/metadata/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export interface DirectiveDecorator {
* accessible for components outside of the NgModule.
*
*
* @Annotation
*/
(obj?: Directive): TypeDecorator;

Expand All @@ -111,7 +110,6 @@ export interface DirectiveDecorator {
/**
* Directive decorator and metadata.
*
* @Annotation
* @publicApi
*/
export interface Directive {
Expand Down Expand Up @@ -291,7 +289,6 @@ export interface Directive {
* }
* ```
*
* @Annotation
*/
queries?: {[key: string]: any};

Expand Down Expand Up @@ -511,7 +508,6 @@ export interface ComponentDecorator {
* To preserve sequences of whitespace characters, use the
* `ngPreserveWhitespaces` attribute.
*
* @Annotation
*/
(obj: Component): TypeDecorator;
/**
Expand Down Expand Up @@ -663,7 +659,7 @@ export interface Component extends Directive {
/**
* Component decorator and metadata.
*
* @Annotation
* @publicApi
*/
export const Component: ComponentDecorator = makeDecorator(
Expand Down Expand Up @@ -741,7 +737,7 @@ export interface Pipe {
}

/**
* @Annotation
* @publicApi
*/
export const Pipe: PipeDecorator = makeDecorator(
Expand Down Expand Up @@ -820,7 +816,7 @@ export interface Input {
}

/**
* @Annotation
* @publicApi
*/
export const Input: InputDecorator =
Expand Down Expand Up @@ -870,7 +866,7 @@ export interface Output {
}

/**
* @Annotation
* @publicApi
*/
export const Output: OutputDecorator = makePropDecorator('Output', (alias?: string) => ({alias}));
Expand Down Expand Up @@ -929,7 +925,7 @@ export interface HostBinding {
}

/**
* @Annotation
* @publicApi
*/
export const HostBinding: HostBindingDecorator =
Expand Down Expand Up @@ -1033,7 +1029,7 @@ export interface HostListener {
* The global target names that can be used to prefix an event name are
* `document:`, `window:` and `body:`.
*
* @Annotation
* @publicApi
*/
export const HostListener: HostListenerDecorator =
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/metadata/ng_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ export interface NgModule {
}

/**
* @Annotation
*/
export const NgModule: NgModuleDecorator = makeDecorator(
'NgModule', (ngModule: NgModule) => ngModule, undefined, undefined,
Expand Down

0 comments on commit a1ca162

Please sign in to comment.