X Tutup
Skip to content

Commit d99823e

Browse files
committed
docs(core): fix some grammar
Closes angular#8055
1 parent bb9fb21 commit d99823e

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

modules/angular2/src/core/metadata.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,14 +1106,15 @@ export var ContentChild: ContentChildFactory = makePropDecorator(ContentChildMet
11061106
/**
11071107
* Declares a list of child element references.
11081108
*
1109-
* Angular automatically updates the list when the DOM was updated.
1109+
* Angular automatically updates the list when the DOM is updated.
11101110
*
11111111
* `ViewChildren` takes a argument to select elements.
11121112
*
11131113
* - If the argument is a type, directives or components with the type will be bound.
11141114
*
1115-
* - If the argument is a string, the string behaviors as comma-separated selectors. For each
1116-
* selector, an element matched template variables (e.g. `#child`) will be bound.
1115+
* - If the argument is a string, the string is interpreted as a list of comma-separated selectors.
1116+
* For each selector, an element containing the matching template variable (e.g. `#child`) will be
1117+
* bound.
11171118
*
11181119
* View children are set before the `ngAfterViewInit` callback is called.
11191120
*
@@ -1185,17 +1186,17 @@ export var ViewChildren: ViewChildrenFactory = makePropDecorator(ViewChildrenMet
11851186

11861187
// TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildMetadata.
11871188
/**
1188-
* Declares a reference of child element.
1189+
* Declares a reference to a child element.
11891190
*
11901191
* `ViewChildren` takes a argument to select elements.
11911192
*
11921193
* - If the argument is a type, a directive or a component with the type will be bound.
11931194
*
1194-
* - If the argument is a string, the string behaviors as a selectors. An element matched template
1195-
* variables (e.g. `#child`) will be bound.
1195+
* - If the argument is a string, the string is interpreted as a selector. An element containing the
1196+
* matching template variable (e.g. `#child`) will be bound.
11961197
*
1197-
* In either case, `@ViewChild()` assigns the first (looking from above) element if the result is
1198-
* multiple.
1198+
* In either case, `@ViewChild()` assigns the first (looking from above) element if there are
1199+
* multiple matches.
11991200
*
12001201
* View child is set before the `ngAfterViewInit` callback is called.
12011202
*

modules/angular2/src/core/metadata/di.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,15 @@ export class ViewQueryMetadata extends QueryMetadata {
287287
/**
288288
* Declares a list of child element references.
289289
*
290-
* Angular automatically updates the list when the DOM was updated.
290+
* Angular automatically updates the list when the DOM is updated.
291291
*
292292
* `ViewChildren` takes an argument to select elements.
293293
*
294294
* - If the argument is a type, directives or components with the type will be bound.
295295
*
296-
* - If the argument is a string, the string behaviors as comma-separated selectors. For each
297-
* selector, an element matched template variables (e.g. `#child`) will be bound.
296+
* - If the argument is a string, the string is interpreted as a list of comma-separated selectors.
297+
* For each selector, an element containing the matching template variable (e.g. `#child`) will be
298+
* bound.
298299
*
299300
* View children are set before the `ngAfterViewInit` callback is called.
300301
*
@@ -373,11 +374,11 @@ export class ViewChildrenMetadata extends ViewQueryMetadata {
373374
*
374375
* - If the argument is a type, a directive or a component with the type will be bound.
375376
*
376-
* - If the argument is a string, the string behaviors as a selectors. An element matched template
377-
* variables (e.g. `#child`) will be bound.
377+
If the argument is a string, the string is interpreted as a selector. An element containing the
378+
matching template variable (e.g. `#child`) will be bound.
378379
*
379-
* In either case, `@ViewChild()` assigns the first (looking from above) element if the result is
380-
* multiple.
380+
* In either case, `@ViewChild()` assigns the first (looking from above) element if there are
381+
multiple matches.
381382
*
382383
* View child is set before the `ngAfterViewInit` callback is called.
383384
*

0 commit comments

Comments
 (0)
X Tutup