ComponentFactory
Class
deprecated
Base class for a factory that can create a component dynamically.
Instantiate a factory for a given type of component with resolveComponentFactory().
Use the resulting ComponentFactory.create() method to create a component of that type.
Deprecation warning
selector
stringThe component's HTML selector.
componentType
Type<any>The type of component the factory will create.
ngContentSelectors
string[]Selector for all
inputs
{ propName: string; templateName: string; transform?: ((value: any) => any) | undefined; isSignal: boolean; }[]The inputs of the component.
outputs
{ propName: string; templateName: string; }[]The outputs of the component.
create
ComponentRef<C>Creates a new component.
@paramprojectableNodes
any[][] | undefined@paramrootSelectorOrNode
any@returns
ComponentRef<C>Jump to details