docs(API): 翻译完了 ComponentFactory
This commit is contained in:
parent
8dbe7ff025
commit
0d7690251b
|
@ -75,7 +75,7 @@
|
||||||
[x] | core/ChangeDetectorRef | 0.21
|
[x] | core/ChangeDetectorRef | 0.21
|
||||||
[x] | router/NavigationStart | 0.21
|
[x] | router/NavigationStart | 0.21
|
||||||
[x] | common/formatDate | 0.21
|
[x] | common/formatDate | 0.21
|
||||||
[ ] | core/ComponentFactoryResolver | 0.20
|
[x] | core/ComponentFactoryResolver | 0.20
|
||||||
[ ] | forms/Form | 0.20
|
[ ] | forms/Form | 0.20
|
||||||
[ ] | common/http/HttpErrorResponse | 0.20
|
[ ] | common/http/HttpErrorResponse | 0.20
|
||||||
[ ] | core/QueryList | 0.19
|
[ ] | core/QueryList | 0.19
|
||||||
|
|
|
@ -46,6 +46,8 @@ function toRefArray(map: {[key: string]: string}): {propName: string; templateNa
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default {@link RootContext} for all components rendered with {@link renderComponent}.
|
* Default {@link RootContext} for all components rendered with {@link renderComponent}.
|
||||||
|
*
|
||||||
|
* 通过 {@link renderComponent} 渲染所有组件时的默认 {@link RootContext}。
|
||||||
*/
|
*/
|
||||||
export const ROOT_CONTEXT = new InjectionToken<RootContext>(
|
export const ROOT_CONTEXT = new InjectionToken<RootContext>(
|
||||||
'ROOT_CONTEXT_TOKEN',
|
'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
|
* 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.
|
* 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)>(
|
export const SCHEDULER = new InjectionToken<((fn: () => void) => void)>(
|
||||||
'SCHEDULER_TOKEN', {providedIn: 'root', factory: () => requestAnimationFrame.bind(window)});
|
'SCHEDULER_TOKEN', {providedIn: 'root', factory: () => requestAnimationFrame.bind(window)});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render3 implementation of {@link viewEngine_ComponentFactory}.
|
* Render3 implementation of {@link viewEngine_ComponentFactory}.
|
||||||
|
*
|
||||||
|
* {@link viewEngine_ComponentFactory} 的 Render3 实现。
|
||||||
*/
|
*/
|
||||||
export class ComponentFactory<T> extends viewEngine_ComponentFactory<T> {
|
export class ComponentFactory<T> extends viewEngine_ComponentFactory<T> {
|
||||||
selector: string;
|
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}.
|
* 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
|
* `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}
|
* Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
|
||||||
* method.
|
* method.
|
||||||
*
|
*
|
||||||
|
* `ComponentRef` 提供了对该组件实例及其相关对象的访问能力,并允许你通过 {@link #destroy} 方法销毁该实例。
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
export class ComponentRef<T> extends viewEngine_ComponentRef<T> {
|
export class ComponentRef<T> extends viewEngine_ComponentRef<T> {
|
||||||
destroyCbs: (() => void)[]|null = [];
|
destroyCbs: (() => void)[]|null = [];
|
||||||
|
|
Loading…
Reference in New Issue