ComponentRef
ComponentRef
Stable Class
Class Overview
class ComponentRef { C location : ElementRef injector : Injector instance : C hostView : ViewRef changeDetectorRef : ChangeDetectorRef componentType : Type<any> destroy() : void onDestroy(callback: Function) : void }
Class Description
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 Inst