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> | nullComponent that should be rendered in the outlet.
ngComponentOutletInputs
Record<string, unknown> | undefinedngComponentOutletInjector
Injector | undefinedngComponentOutletContent
any[][] | undefinedngComponentOutletNgModule
Type<any> | undefinedngComponentOutletNgModuleFactory
NgModuleFactory<any> | undefinedcomponentInstance
T | nullGets the instance of the currently-rendered component. Will be null if no component has been rendered.
ngOnChanges
void@returns
voidngDoCheck
void@returns
voidngOnDestroy
void@returns
voidJump to details