docs(API): 翻译完了 ComponentFactory

This commit is contained in:
Zhicheng Wang 2018-09-04 15:56:04 +08:00
parent 8dbe7ff025
commit 0d7690251b
2 changed files with 11 additions and 1 deletions

View File

@ -75,7 +75,7 @@
[x] | core/ChangeDetectorRef | 0.21
[x] | router/NavigationStart | 0.21
[x] | common/formatDate | 0.21
[ ] | core/ComponentFactoryResolver | 0.20
[x] | core/ComponentFactoryResolver | 0.20
[ ] | forms/Form | 0.20
[ ] | common/http/HttpErrorResponse | 0.20
[ ] | core/QueryList | 0.19

View File

@ -46,6 +46,8 @@ function toRefArray(map: {[key: string]: string}): {propName: string; templateNa
/**
* Default {@link RootContext} for all components rendered with {@link renderComponent}.
*
* {@link renderComponent} {@link RootContext}
*/
export const ROOT_CONTEXT = new InjectionToken<RootContext>(
'ROOT_CONTEXT_TOKEN',
@ -54,12 +56,16 @@ export const ROOT_CONTEXT = new InjectionToken<RootContext>(
/**
* A change detection scheduler token for {@link RootContext}. This token is the default value used
* for the default `RootContext` found in the {@link ROOT_CONTEXT} token.
*
* {@link RootContext} 使 {@link ROOT_CONTEXT} `RootContext` 使
*/
export const SCHEDULER = new InjectionToken<((fn: () => void) => void)>(
'SCHEDULER_TOKEN', {providedIn: 'root', factory: () => requestAnimationFrame.bind(window)});
/**
* Render3 implementation of {@link viewEngine_ComponentFactory}.
*
* {@link viewEngine_ComponentFactory} Render3
*/
export class ComponentFactory<T> extends viewEngine_ComponentFactory<T> {
selector: string;
@ -170,10 +176,14 @@ export class ComponentFactory<T> extends viewEngine_ComponentFactory<T> {
/**
* Represents an instance of a Component created via a {@link ComponentFactory}.
*
* {@link ComponentFactory}
*
* `ComponentRef` provides access to the Component Instance as well other objects related to this
* Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
* method.
*
* `ComponentRef` 访 {@link #destroy}
*
*/
export class ComponentRef<T> extends viewEngine_ComponentRef<T> {
destroyCbs: (() => void)[]|null = [];