Skip to content

Commit c901934

Browse files
AndrewKushniratscott
authored andcommitted
docs: add the Standalone guide link to API docs of component/directive/pipe decorators (angular#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 angular#46184
1 parent 51baa0b commit c901934

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/core/src/metadata/directives.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ export interface Directive {
325325
* Angular directives marked as `standalone` do not need to be declared in an NgModule. Such
326326
* directives don't depend on any "intermediate context" of an NgModule (ex. configured
327327
* providers).
328+
*
329+
* More information about standalone components, directives and pipes can be found in [this
330+
* guide](guide/standalone-components).
328331
*/
329332
standalone?: boolean;
330333
}
@@ -598,6 +601,9 @@ export interface Component extends Directive {
598601
* Angular components marked as `standalone` do not need to be declared in an NgModule. Such
599602
* components directly manage their own template dependencies (components, directives and pipes
600603
* used in a template) via the imports property.
604+
*
605+
* More information about standalone components, directives and pipes can be found in [this
606+
* guide](guide/standalone-components).
601607
*/
602608
standalone?: boolean;
603609

@@ -608,6 +614,9 @@ export interface Component extends Directive {
608614
*
609615
* This property is only available for standalone components - specifying it for components
610616
* declared in an NgModule generates a compilation error.
617+
*
618+
* More information about standalone components, directives and pipes can be found in [this
619+
* guide](guide/standalone-components).
611620
*/
612621
imports?: (Type<any>|any[])[];
613622

@@ -617,6 +626,9 @@ export interface Component extends Directive {
617626
*
618627
* This property is only available for standalone components - specifying it for components
619628
* declared in an NgModule generates a compilation error.
629+
*
630+
* More information about standalone components, directives and pipes can be found in [this
631+
* guide](guide/standalone-components).
620632
*/
621633
schemas?: SchemaMetadata[];
622634
}
@@ -694,6 +706,9 @@ export interface Pipe {
694706
/**
695707
* Angular pipes marked as `standalone` do not need to be declared in an NgModule. Such
696708
* pipes don't depend on any "intermediate context" of an NgModule (ex. configured providers).
709+
*
710+
* More information about standalone components, directives and pipes can be found in [this
711+
* guide](guide/standalone-components).
697712
*/
698713
standalone?: boolean;
699714
}

0 commit comments

Comments
 (0)