docs(API): 翻译完了 ViewChild

This commit is contained in:
Zhicheng Wang 2018-09-01 14:19:20 +08:00
parent cfd6494ade
commit ea796c6952
2 changed files with 24 additions and 1 deletions

View File

@ -23,7 +23,7 @@
[x] |router/ActivatedRoute | 2,993 | 0.93 [x] |router/ActivatedRoute | 2,993 | 0.93
[x] |forms/AbstractControl | 2,930 | 0.91 [x] |forms/AbstractControl | 2,930 | 0.91
[x] |router/RouterLink | 2,929 | 0.91 [x] |router/RouterLink | 2,929 | 0.91
[ ] |core/ViewChild | 2,870 | 0.89 [x] |core/ViewChild | 2,870 | 0.89
[x] |core/Directive | 2,767 | 0.86 [x] |core/Directive | 2,767 | 0.86
[x] |router/Routes | 2,331 | 0.72 [x] |router/Routes | 2,331 | 0.72
[ ] |router/RouterModule | 2,227 | 0.69 [ ] |router/RouterModule | 2,227 | 0.69

View File

@ -304,6 +304,8 @@ export const ViewChildren: ViewChildrenDecorator = makePropDecorator(
/** /**
* Type of the ViewChild decorator / constructor function. * Type of the ViewChild decorator / constructor function.
* *
* ViewChild
*
* @see `ViewChild`. * @see `ViewChild`.
*/ */
export interface ViewChildDecorator { export interface ViewChildDecorator {
@ -314,21 +316,38 @@ export interface ViewChildDecorator {
* in the view DOM. If the view DOM changes, and a new child matches the selector, * in the view DOM. If the view DOM changes, and a new child matches the selector,
* the property is updated. * the property is updated.
* *
*
* DOM
* DOM
*
* View queries are set before the `ngAfterViewInit` callback is called. * View queries are set before the `ngAfterViewInit` callback is called.
* *
* `NgAfterViewInit`
*
* **Metadata Properties**: * **Metadata Properties**:
* *
* ****
*
* * **selector** - the directive type or the name used for querying. * * **selector** - the directive type or the name used for querying.
*
* **selector** -
*
* * **read** - read a different token from the queried elements. * * **read** - read a different token from the queried elements.
* *
* **read** -
*
* @usageNotes * @usageNotes
* *
* ### Example * ### Example
* *
* ###
*
* {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'} * {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
* *
* ### Example * ### Example
* *
* ###
*
* {@example core/di/ts/viewChild/view_child_example.ts region='Component'} * {@example core/di/ts/viewChild/view_child_example.ts region='Component'}
* *
* @Annotation * @Annotation
@ -339,12 +358,16 @@ export interface ViewChildDecorator {
/** /**
* Type of the ViewChild metadata. * Type of the ViewChild metadata.
*
* ViewChild
*/ */
export type ViewChild = Query; export type ViewChild = Query;
/** /**
* ViewChild decorator and metadata. * ViewChild decorator and metadata.
* *
* ViewChild
*
* @Annotation * @Annotation
*/ */
export const ViewChild: ViewChildDecorator = makePropDecorator( export const ViewChild: ViewChildDecorator = makePropDecorator(