Skip to content

Commit c6b8635

Browse files
ChinoUkaegbupkozlowski-opensource
authored andcommitted
docs(core): update wording in ComponentDecorator (#57878)
PR Close #57878
1 parent cd6ecdb commit c6b8635

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/core/src/metadata/directives.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,10 @@ export interface ComponentDecorator {
401401
* Unlike other directives, only one component can be instantiated for a given element in a
402402
* template.
403403
*
404-
* A component must belong to an NgModule in order for it to be available
405-
* to another component or application. To make it a member of an NgModule,
406-
* list it in the `declarations` field of the `NgModule` metadata.
404+
* Standalone components can be directly imported in any other standalone component or NgModule.
405+
* NgModule based apps on the other hand require components to belong to an NgModule in
406+
* order for them to be available to another component or application. To make a component a
407+
* member of an NgModule, list it in the `declarations` field of the `NgModule` metadata.
407408
*
408409
* Note that, in addition to these options for configuring a directive,
409410
* you can control a component's runtime behavior by implementing

0 commit comments

Comments
 (0)