NgComponentOutlet
directive
Instantiates a Component
type and inserts its Host View into the current View.
NgComponentOutlet
provides a declarative approach for dynamic component creation.
API
Description
Usage Notes
class NgComponentOutlet<T = any> implements OnChanges ,DoCheck ,OnDestroy {}
ngComponentOutlet
Type<any> | null
Component that should be rendered in the outlet.
ngComponentOutletInputs
Record<string, unknown> | undefined
ngComponentOutletInjector
Injector | undefined
ngComponentOutletContent
any[][] | undefined
ngComponentOutletNgModule
Type<any> | undefined
ngComponentOutletNgModuleFactory
NgModuleFactory<any> | undefined
componentInstance
T | null
Gets the instance of the currently-rendered component. Will be null if no component has been rendered.
ngOnChanges
void
@returns
void
ngDoCheck
void
@returns
void
ngOnDestroy
void
@returns
void
Jump to details