ComponentReflink
Represents an instance of a Component created via a 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 destroy method.
属性
属性名 | 类型 | 说明 |
---|---|---|
location | 只读 Location of the Host Element of this Component Instance. | |
injector | 只读 The injector on which the component instance exists. | |
instance | 只读 The instance of the Component. | |
hostView | 只读 The | |
changeDetectorRef | 只读 The | |
componentType | 只读 The component type. |
方法
Destroys the component instance and all of the data structures associated with it. |
参数没有参数。 返回值
|
Allows to register a callback that will be called when the component is destroyed. | ||
参数
返回值
|