Skip to content

Commit 1cf5f5f

Browse files
benelliottchuckjaz
authored andcommitted
docs(NgModule): Fixed docs for NgModule.entryComponents (angular#12006)
* docs(NgModule): Corrected the wording of the documentation of `entryComponents`, fixed some minor grammar issues * docs(NgModule): Remove redundant ComponentFactory mentions * docs(NgModule): Restore ComponentFactory/ComponentResolver links
1 parent a32078f commit 1cf5f5f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

modules/@angular/core/src/metadata/ng_module.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface SchemaMetadata { name: string; }
2929

3030
/**
3131
* Defines a schema that will allow:
32-
* - any non-angular elements with a `-` in their name,
32+
* - any non-Angular elements with a `-` in their name,
3333
* - any properties on elements with a `-` in their name which is the common rule for custom
3434
* elements.
3535
*
@@ -132,9 +132,9 @@ export interface NgModule {
132132
imports?: Array<Type<any>|ModuleWithProviders|any[]>;
133133

134134
/**
135-
* Specifies a list of directives/pipes/module that can be used within the template
136-
* of any component that is part of an angular module
137-
* that imports this angular module.
135+
* Specifies a list of directives/pipes/modules that can be used within the template
136+
* of any component that is part of an Angular module
137+
* that imports this Angular module.
138138
*
139139
* ### Example
140140
*
@@ -149,10 +149,9 @@ export interface NgModule {
149149
exports?: Array<Type<any>|any[]>;
150150

151151
/**
152-
* Defines the components that should be compiled as well when
153-
* this component is defined. For each components listed here,
154-
* Angular will create a {@link ComponentFactory ComponentFactory} and store it in the
155-
* {@link ComponentFactoryResolver ComponentFactoryResolver}.
152+
* Specifies a list of components that should be compiled when this module is defined.
153+
* For each component listed here, Angular will create a {@link ComponentFactory}
154+
* and store it in the {@link ComponentFactoryResolver}.
156155
*/
157156
entryComponents?: Array<Type<any>|any[]>;
158157

@@ -164,7 +163,7 @@ export interface NgModule {
164163
bootstrap?: Array<Type<any>|any[]>;
165164

166165
/**
167-
* Elements and properties that are not angular Components nor Directives have to be declared in
166+
* Elements and properties that are not Angular components nor directives have to be declared in
168167
* the schema.
169168
*
170169
* Available schemas:
@@ -186,7 +185,7 @@ export interface NgModule {
186185
}
187186

188187
/**
189-
* NgModule decorator and metadata
188+
* NgModule decorator and metadata.
190189
*
191190
* @stable
192191
* @Annotation

0 commit comments

Comments
 (0)