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] |forms/AbstractControl | 2,930 | 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] |router/Routes | 2,331 | 0.72
[ ] |router/RouterModule | 2,227 | 0.69

View File

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