From 9850ea499e7ee260481b2932b96b60f22d137ca7 Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Sun, 29 May 2022 18:45:41 -0700 Subject: [PATCH] docs: add the Standalone guide link to API docs of component/directive/pipe decorators (#46184) This commit adds the Standalone guide link to the `@Component`, `@Directive` and `@Pipe` decorator properties related to standalone functionality to improve discoverability of the guide as well as providing extra context in API docs. PR Close #46184 --- packages/core/src/metadata/directives.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/core/src/metadata/directives.ts b/packages/core/src/metadata/directives.ts index d48d54a24d3..198f992331e 100644 --- a/packages/core/src/metadata/directives.ts +++ b/packages/core/src/metadata/directives.ts @@ -325,6 +325,9 @@ export interface Directive { * Angular directives marked as `standalone` do not need to be declared in an NgModule. Such * directives don't depend on any "intermediate context" of an NgModule (ex. configured * providers). + * + * More information about standalone components, directives and pipes can be found in [this + * guide](guide/standalone-components). */ standalone?: boolean; } @@ -598,6 +601,9 @@ export interface Component extends Directive { * Angular components marked as `standalone` do not need to be declared in an NgModule. Such * components directly manage their own template dependencies (components, directives and pipes * used in a template) via the imports property. + * + * More information about standalone components, directives and pipes can be found in [this + * guide](guide/standalone-components). */ standalone?: boolean; @@ -608,6 +614,9 @@ export interface Component extends Directive { * * This property is only available for standalone components - specifying it for components * declared in an NgModule generates a compilation error. + * + * More information about standalone components, directives and pipes can be found in [this + * guide](guide/standalone-components). */ imports?: (Type|any[])[]; @@ -617,6 +626,9 @@ export interface Component extends Directive { * * This property is only available for standalone components - specifying it for components * declared in an NgModule generates a compilation error. + * + * More information about standalone components, directives and pipes can be found in [this + * guide](guide/standalone-components). */ schemas?: SchemaMetadata[]; } @@ -694,6 +706,9 @@ export interface Pipe { /** * Angular pipes marked as `standalone` do not need to be declared in an NgModule. Such * pipes don't depend on any "intermediate context" of an NgModule (ex. configured providers). + * + * More information about standalone components, directives and pipes can be found in [this + * guide](guide/standalone-components). */ standalone?: boolean; }